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
import{initBackend}from'absurd-sql/dist/indexeddb-main-thread';functioninit(){letworker=newWorker(newURL('./index.worker.js',import.meta.url));// This is only required because Safari doesn't support nested// workers. This installs a handler that will proxy creating web// workers through the main threadinitBackend(worker);}init();
WebKit has merged this PR, so soon we won't require the hack to initBackend.
With Reference to the following Snippet:
WebKit has merged this PR, so soon we won't require the hack to initBackend.
Until that release is widely adopted, would this Polyfill help for safari?
https://github.com/johanholmerin/nested-worker
So, is it possible to remove this block and upgrade the code to directly create nested worker. This will greatly improve the DX.
The text was updated successfully, but these errors were encountered: