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 have implemented a minimal version of a WebWorker. Only a postMessage from main and one back from worker.js.
after editing the existing worker.js file the message send back was the same even tho it was saved. When completely renaming the file to worker2.js (and changing it in the main and index file) it worked like expected but i even could still read the data of worker.js even after deletion by changing the references back to worker.js.
Expected Behavior
clear
Steps to reproduce
sketch.js:
lettestfileText="";functionpreload(){// Load the contents of worker.js as texttestfileText=loadStrings('testfile.js');}functionsetup(){console.log(testfileText.join("\n"));}
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.
p5.js version
v1.11.1 October 31, 2024
What is your operating system?
Mac OS
Web browser and version
chrome 131.0.6778.205
Actual Behavior
i have implemented a minimal version of a WebWorker. Only a postMessage from main and one back from worker.js.
after editing the existing worker.js file the message send back was the same even tho it was saved. When completely renaming the file to worker2.js (and changing it in the main and index file) it worked like expected but i even could still read the data of worker.js even after deletion by changing the references back to worker.js.
Expected Behavior
clear
Steps to reproduce
sketch.js:
testfile.js :
//testfile
index.html:
Saving Everything in editor
changing testfile to:
//testfile new
after saving it still logs "//testfile" instead of "//testfile new" in console
I already tried:
resaving everything
refreshing website
using absolute paths
deleting file
deleting chrome cache
The text was updated successfully, but these errors were encountered: