fix: parser-worker.js path on web

pull/2686/head
Tienson Qin 2021-08-21 09:37:13 +08:00
parent dde5b9d178
commit 3faf8088eb
1 changed files with 8 additions and 1 deletions

View File

@ -12,8 +12,15 @@
([] ([]
(create-parser-pool! 8)) (create-parser-pool! 8))
([num] ([num]
(p/let [static-path (if (and (util/electron?) (not config/dev?)) (p/let [static-path (cond
(and (util/electron?) (not config/dev?))
(ipc/ipc :getDirname) (ipc/ipc :getDirname)
(and (not config/dev?)
(not (util/electron?)))
(str config/asset-domain "/static")
:else
"/static")] "/static")]
(Pool. (Pool.
(fn [] (fn []