进一步来说:
[Report Only] Refused to load the font 'data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABBQAAoAAAAAG…H8zVsjnmMx0GcZ2HGViNOySWEa9fvEQtW43Nm+EOO0ZIpdLbMXoVzPJkcfHT6U+gLEpz/MAAAA' because it violates the following Content Security Policy directive: "font-src 'self'".
Run Code Online (Sandbox Code Playgroud)
这是我的contentSecurityPolicy
目标environment.js
:
contentSecurityPolicy: {
'default-src': "'none'",
'script-src': "'self' 'unsafe-inline' 'unsafe-eval' connect.facebook.net",
'connect-src': "'self'",
'img-src': "'self' www.facebook.com",
'style-src': "'self' 'unsafe-inline'",
'frame-src': "s-static.ak.facebook.com static.ak.facebook.com www.facebook.com",
'report-uri': "http://localhost:4200"
},
Run Code Online (Sandbox Code Playgroud)
有什么不对的吗?
我认为这个标题非常具有描述性.我正在使用Ember.js开展闲置游戏项目,现在我每秒节省25次本地存储,而不是每10或20秒保存一次.这是一个非常少量的数据,我没有遇到任何性能问题(至少在我的机器上),但我想知道这是不是很糟糕,如果是这样,那有多糟糕.谢谢 :)
我最近更新了ember-cli
从项目0.0.44
到0.1.1
和所有的突然我的模板不装了,而是我得到的控制台上的以下警告:
Could not find "application" template or view. Nothing will be rendered Object {fullName: "template:application"}
Could not find "index" template or view. Nothing will be rendered Object {fullName: "template:index"}
Run Code Online (Sandbox Code Playgroud)
我用来更新项目的步骤只是:
npm install --save-dev ember-cli
ember init
Run Code Online (Sandbox Code Playgroud)
这是我的路由器:
import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route('login');
this.route('permission');
this.route('user');
this.route('room');
this.route('room/new');
});
Router.reopen({
notifyGoogleAnalytics: function() {
return window.ga('send', 'pageview', {
'page': this.get('url'),
'title': this.get('url')
});
}.on('didTransition') …
Run Code Online (Sandbox Code Playgroud) 我Uncaught Error: Assertion Failed: Attempted to register a view with an id already in use: name
使用ember-cli 随机开始在我的应用上出现此错误.我只有两条路线
Router.map(function() {
this.route('buy');
this.route('rent');
});
Run Code Online (Sandbox Code Playgroud)
没有控制器,我的索引路由重定向到我 buy
redirect: function() {
this.transitionTo('buy');
}
Run Code Online (Sandbox Code Playgroud)
我的rent
路线也渲染buy
模板
renderTemplate: function() {
this.render('buy');
}
Run Code Online (Sandbox Code Playgroud)
我没有rent
或index
模板.我不知道这个错误来自哪里.