mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 23:56:36 +08:00
chore(core): wrong worker url prefix (#11769)
This commit is contained in:
Vendored
+2
-1
@@ -1,6 +1,7 @@
|
||||
export function getWorkerUrl(name: string) {
|
||||
return (
|
||||
environment.publicPath +
|
||||
// NOTE: worker can not use publicPath because it must obey the same-origin policy
|
||||
(environment.subPath || '/') +
|
||||
'js/' +
|
||||
`${name}-${BUILD_CONFIG.appVersion}.worker.js`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user