mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
Use subject
instead of bus
on workers ns.
This commit is contained in:
parent
1f7b3b37ab
commit
98b1fd6afd
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@
|
||||||
"Return a initialized webworker instance."
|
"Return a initialized webworker instance."
|
||||||
[path]
|
[path]
|
||||||
(let [wrk (js/Worker. path)
|
(let [wrk (js/Worker. path)
|
||||||
bus (rx/bus)]
|
bus (rx/subject)]
|
||||||
(.addEventListener wrk "message"
|
(.addEventListener wrk "message"
|
||||||
(fn [event]
|
(fn [event]
|
||||||
(let [data (.-data event)
|
(let [data (.-data event)
|
||||||
|
|
Loading…
Add table
Reference in a new issue