circuithub / morpheus

Browser side Constructive Solid Geometry.
MIT License
13 stars 1 forks source link

Fix webworker CSM loader in firefox #16

Open rehno-lindeque opened 12 years ago

rehno-lindeque commented 12 years ago

It appears that the javascript file might be loading with the wrong mime type in Firefox?

Getting this error:

not well-formed
file:///home/snow/projects/active/development/contract/circuithub/mecha/static%2Flib%2Fapi.csm.js
Line 1
rehno-lindeque commented 12 years ago

Another error was that firefox is using window.dispatchEvent in firefox, see https://github.com/rehno-lindeque/jsandbox/issues/1

This is fixed now by enabling dispatchEvent but we might have to look at JSandbox again to confirm whether this is safe from a sandboxing standpoint.