0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 12:59:12 -05:00

Initialize webworker only on browser environment.

This commit is contained in:
Andrey Antukh 2016-04-15 23:26:36 +03:00
parent 5ebe483f8a
commit eff6a854a0
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -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")))