Closed arv closed 3 years ago
We are using web_sys::window() in a bunch of places. This does not work in a worker because there is no window/Window in a worker.
web_sys::window()
window
Window
We should probably just use js_sys::global() in combination with js_sys::reflect::get
js_sys::global()
js_sys::reflect::get
Blocking https://github.com/rocicorp/replicache-sdk-js/issues/143
We are using
web_sys::window()
in a bunch of places. This does not work in a worker because there is nowindow
/Window
in a worker.We should probably just use
js_sys::global()
in combination withjs_sys::reflect::get
Blocking https://github.com/rocicorp/replicache-sdk-js/issues/143