ccapture.js icon indicating copy to clipboard operation
ccapture.js copied to clipboard

Uncaught DOMException: Failed to construct 'Worker'

Open JulietVega opened this issue 6 years ago • 3 comments

I am facing problems with the save function. I tried with Google Chrome from my Mac and it is giving me the following error:

Uncaught DOMException: Failed to construct 'Worker': Script at 'file:///Users/Admin/Downloads/project01/js/gif.worker.js' cannot be accessed from origin 'null'.

I tried also to open the file with Safari and somehow it's not even loading?! Can someone tell me how to solve this problem?

JulietVega avatar Jan 19 '19 15:01 JulietVega

Does this online example work for you? https://ThimbleProjects.org/gotoloop/509340

GoToLoop avatar Jan 19 '19 19:01 GoToLoop

@GoToLoop yes this works!

JulietVega avatar Jan 19 '19 20:01 JulietVega

@JulietVega, I believe that you'll need to setup a local server to access a Worker, see https://github.com/processing/p5.js/wiki/Local-server to learn how to create one.
Using Web Workers

MAKIO135 avatar Mar 21 '19 07:03 MAKIO135