On Fri, Feb 9, 2018 at 12:22 PM, Marc H <zappythe...@gmail.com> wrote:

> Thanks so much the snippet now works! Now I am trying to integrate this
> with my project, which uses a framework called "A-Frame" for games and I
> have run into another problem.
>
> When I include the framework script, (I believe) it tries to add a
> function to the Math prototype that the library needs, and I get an error
> in the console like this:
>
> Uncaught script error: Uncaught TypeError: can't define property "sign":
> Math is not extensible in source: "https://cdnjs.cloudflare.com/
> ajax/libs/aframe/0.6.0/aframe-master.js" at line: -1
>
> Modifying the objects provided by JavaScript is prohibited in the Caja/SES
environment.

PS. When reproducing this there is a delay before the error shows, and the
> page first goes unresponsive


Probably mostly time to parse the code. Not much to be done other than load
less code, unfortunately.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-caja-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to