Uncaught DOMException: Failed to construct 'Worker'
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?
Does this online example work for you? https://ThimbleProjects.org/gotoloop/509340
@GoToLoop yes this works!
@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