googlearchive / polymer-tutorial

Deprecated Polymer 0.5 tutorial app
211 stars 125 forks source link

observe.js eval('%RunMicrotasks()') #17

Closed djhacktor closed 10 years ago

djhacktor commented 10 years ago

Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self' chrome-extension-resource:". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.

robdodson commented 10 years ago

Can you give us a little more info:

arv commented 10 years ago

This warning can be ignored. We try to eval to see if eval works. We capture the exception so that the program can continue. It is a bug that your browser (which one?) is reporting a caught error.

arv commented 10 years ago

Dupe of https://github.com/Polymer/polymer/issues/612

djhacktor commented 10 years ago

m using this tutorial as package app on Google chrome canary as well on Version 36.0.1985.125 same error on both

robdodson commented 10 years ago

Ah ok that explains it. Chrome Packaged Apps need to have vulcanize run against the elements with the --csp flag. Have you tried this version: https://github.com/polymerlabs/polymerchromeapp ?

On Mon, Jul 28, 2014 at 11:12 PM, DjHacktor notifications@github.com wrote:

m using this tutorial as package app on Google chrome canary as well on Version 36.0.1985.125 same error on both

— Reply to this email directly or view it on GitHub https://github.com/Polymer/polymer-tutorial/issues/17#issuecomment-50438059 .

djhacktor commented 10 years ago

@robdodson thx man it has resolved :)