You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i think it needs the blob path since inline. but am still researching...
Currently reading here: https://www.html5rocks.com/en/tutorials/workers/basics/
Further down there is a chapter called "Loading External Scripts". It says:
"When using these techniques to inline your worker code, importScripts() will only work if you supply an absolute URI. If you attempt to pass a relative URI, the browser will complain with a security error. The reason being: the worker (now created from a blob URL) will be resolved with a blob: prefix, while your app will be running from a different (presumably http://) scheme. Hence, the failure will be due to cross origin restrictions."
But am not sure if that is the reason. I am using this for a mobile app so it needs to work in a file: environment.
I don't know what i am doing wrong but whatever i do i get a
Uncaught SyntaxError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL 'something.js' is invalid
error. Am i missing something. Should i be able to use importScripts with this?
The text was updated successfully, but these errors were encountered: