mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 20:58:06 +00:00
Initialize webworker only on browser environment.
This commit is contained in:
parent
5ebe483f8a
commit
eff6a854a0
@ -11,5 +11,9 @@
|
||||
[uxbox.constants :as c]
|
||||
[uxbox.util.workers :as uw]))
|
||||
|
||||
(defonce worker (uw/init "/js/worker.js"))
|
||||
;; This excludes webworker instantiation on nodejs where
|
||||
;; the tests are run.
|
||||
|
||||
(when (not= *target* "nodejs")
|
||||
(defonce worker (uw/init "/js/worker.js")))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user