mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 04:49:03 -05:00
Initialize webworker only on browser environment.
This commit is contained in:
parent
5ebe483f8a
commit
eff6a854a0
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue