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
I'm using re-frame in webworker (primary to use pneumatic-tubes for dispatching events from serverside over an websocket to webworker). With the newest v1.0.0-rc2 of re-frame it doesn't work anymore, with v0.12.0 it worked.
Error message
Uncaught ReferenceError: window is not defined
at re_frame$interop$on_load (interop.cljs:9)
at settings.cljc:13
Possible Fix
Using js/self instead of js/window (in interop.cljs) would fix this issue (tested in webworker and main thread). In main thread it gives the window object, in webworker it gives the worker object.
I'm using re-frame in webworker (primary to use pneumatic-tubes for dispatching events from serverside over an websocket to webworker). With the newest v1.0.0-rc2 of re-frame it doesn't work anymore, with v0.12.0 it worked.
Error message
Possible Fix
Using js/self instead of js/window (in interop.cljs) would fix this issue (tested in webworker and main thread). In main thread it gives the window object, in webworker it gives the worker object.
The text was updated successfully, but these errors were encountered: