Hi polymer dev,
I'm trying to run Polymer in a Chrome Packaged Apps in Chrome Canary.
1. I checkout the following:
polymer-simple/polymer/ folder contains the minified version of platform and polymer.
2. In chrome://flags, I enabled the following options:
> Enable experimental Web Platform features. Mac, Windows, Linux, Chrome OS, Android
Enable experimental Web Platform features that are in development. #enable-experimental-web-platform-features
> Enable apps-devtool app. Mac, Windows, Linux, Chrome OS
An app to develop apps / extensions. #enable-apps-devtool-app
3. Restart Chrome
4. In chrome://extensions, I checked enabled "Developer Mode".
5. In a new tab page, from the application list, I run "Apps Developer Tools".
6. I used "Load Unpacked" and chose the folder polymer-simple/
7. In the list of application, I used the "launch" option for "polymer simple".
-> I don't see the polymer UI rendering.
8. Back in "Apps Developer Tools" window, polymer simple > Inspect views > simple.html.
It opens the web inspector. I clicked on "Console".
The following logs shown:
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.
tap.js:76
(anonymous function) tap.js:76
Uncaught TypeError: Cannot redefine property: shadowRoot deprecated.js:12
Uncaught ReferenceError: Polymer is not defined build.js:1
Could you help me investigate what's going on?
Especially, "shadowRoot redefined" and "Polymer not defined" looks strange.
Thanks!
--
Hoa V. Dinh