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
createObjectURL is not available in Service workers, only in Web workers. Quick search shows that the lib itsleft uses it to load the wasm files. So maybe use web worker if applicable?
Btw, the library itself seems to have an option to use web worker. It looks like it passes it down to the onnx wasm runtime configuration.
so the problem is that I'm using the lib in a browser extension and there I'm limited to running into a service worker or into the webpage context, but in both cases I have problems. If I run in the page context there are content security policy issues which I'm trying to root out as well.
Hi,
I'm trying to use the library in a service worker, but there the
URL.createObjectURL()
function is not available, do you have any workaround / idea?The text was updated successfully, but these errors were encountered: