mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 23:26:30 +08:00
9 lines
248 B
TypeScript
9 lines
248 B
TypeScript
export function getWorkerUrl(name: string) {
|
|
return (
|
|
// NOTE: worker can not use publicPath because it must obey the same-origin policy
|
|
(environment.subPath || '/') +
|
|
'js/' +
|
|
`${name}-${BUILD_CONFIG.appVersion}.worker.js`
|
|
);
|
|
}
|