rocicorp / repc

The canonical Replicache client, implemented in Rust.
Other
31 stars 7 forks source link

Do not use Window #228

Closed arv closed 3 years ago

arv commented 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.

We should probably just use js_sys::global() in combination with js_sys::reflect::get

Blocking https://github.com/rocicorp/replicache-sdk-js/issues/143