Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1656

Is there a way to use Tauri's `invoke` function in a web worker?

$
0
0

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.


Viewing all articles
Browse latest Browse all 1656

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>