chore(core): wrong worker url prefix (#11769)
This commit is contained in:
1 parent
570dc79e3d
commit
bfecd1856b
1 file changed
+2
-1
Vendored
+2
-1
@@ -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