KineticJS icon indicating copy to clipboard operation
KineticJS copied to clipboard

Error: call to eval() blocked by CSP

Open ajira86 opened this issue 11 years ago • 1 comments

Hello,

I tried to load a KineticJS game as a FirefoxOS app and get this error

Error: call to eval() blocked by CSP

I want to open this issue to discuss about this subject. Could it be solved easily ? (eval is only used two times in the lib). Is it interesting for you to have a compatibility with FireFoxOS app ?

ajira86 avatar Nov 06 '14 08:11 ajira86

I had the same problem. Interestingly, it works when using kinetic.js, but doesn't with the minified version. You should use the non-minified file (at least during development phase), and remove the comments when you want to redistribute your app. I guess the problem is in the minifier, not Kinetic itself. Hoping that helped!

jadpole avatar Nov 11 '14 01:11 jadpole