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) {
|
export function getWorkerUrl(name: string) {
|
||||||
return (
|
return (
|
||||||
environment.publicPath +
|
// NOTE: worker can not use publicPath because it must obey the same-origin policy
|
||||||
|
(environment.subPath || '/') +
|
||||||
'js/' +
|
'js/' +
|
||||||
`${name}-${BUILD_CONFIG.appVersion}.worker.js`
|
`${name}-${BUILD_CONFIG.appVersion}.worker.js`
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user