mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
chore(core): wrong worker url prefix (#11769)
This commit is contained in:
3
packages/common/env/src/worker.ts
vendored
3
packages/common/env/src/worker.ts
vendored
@@ -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