0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 17:00:36 -05:00

Use subject instead of bus on workers ns.

This commit is contained in:
Andrey Antukh 2016-12-19 08:35:48 +01:00
parent 1f7b3b37ab
commit 98b1fd6afd
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -41,7 +41,7 @@
"Return a initialized webworker instance."
[path]
(let [wrk (js/Worker. path)
bus (rx/bus)]
bus (rx/subject)]
(.addEventListener wrk "message"
(fn [event]
(let [data (.-data event)