I want to know if it is possible to run invoke
from Tauri, in a web worker. I am using Tauri and Svelte.When I try to use invoke
from a web worker, I get this error:
chunk-NMUKSDLG.js:1 Uncaught ReferenceError: window is not definedat chunk-NMUKSDLG.js:1:11157
I know that window
isn't available in web workers, but is there another API that I can use, other than invoke
?
Note, see comment.