Closed kebjs closed 1 year ago
yes, Workers are absolutely forbidden from loading files from the local disk: https://stackoverflow.com/questions/21408510/chrome-cant-load-web-worker
Basically, to avoid mischievous javascript, all files loaded from file://
are considered as having a different origin, and a lot of things are forbidden accros origins. You best bet is to use a small HTTP server locally. Very often browsers will allow you to use http:// for restricted APIs, if the IP address resolves to localhost.
Thanks for your quick response; a very short test gave the same results (in a node.js environment). I'll let you know if I manage to pull this off.
Is there a way to have the g-code simulator run from disk (offline)?
Simply downloading it and starting it does not work:
Any hints?
Downloaded (offline)![image](https://user-images.githubusercontent.com/87071689/193057703-41bc0988-77b6-4a83-8ac6-8a1f219ba648.png)
Online![image](https://user-images.githubusercontent.com/87071689/193057645-6f23272f-aad1-4fb3-bc74-5e3a97049601.png)