mirror of https://github.com/logseq/logseq
fix: parser-worker.js path on web
parent
dde5b9d178
commit
3faf8088eb
|
@ -12,8 +12,15 @@
|
|||
([]
|
||||
(create-parser-pool! 8))
|
||||
([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)
|
||||
|
||||
(and (not config/dev?)
|
||||
(not (util/electron?)))
|
||||
(str config/asset-domain "/static")
|
||||
|
||||
:else
|
||||
"/static")]
|
||||
(Pool.
|
||||
(fn []
|
||||
|
|
Loading…
Reference in New Issue