diff --git a/src/paths.ts b/src/paths.ts index 4db69d217edbe4357a873a4e65712a4c46daa0cd..988a572c13d26a152f55906502cf22f1c93d2c35 100644 --- a/src/paths.ts +++ b/src/paths.ts @@ -18,7 +18,7 @@ export let xxdkBasePath : URL | undefined; if (typeof window! !== 'undefined') { if (typeof window!.xxdkBasePath == 'undefined') { window!.xxdkBasePath = default_xxdk_path; - } + } } if (xxdkBasePath === undefined) { xxdkBasePath = default_xxdk_path; @@ -35,17 +35,17 @@ export function setXXDKBasePath(newPath: URL) { // apps need to maintain access // NOTE: we do not use require here, because these are defined entry points in the webpack config export function logFileWorkerPath(): URL { - return new URL(window!.xxdkBasePath + 'dist/logFileWorker.js'); + return new URL(window!.xxdkBasePath + '/dist/logFileWorker.js'); } export function channelsIndexedDbWorkerPath(): URL { - return new URL(window!.xxdkBasePath + 'dist/channelsIndexedDbWorker.js'); + return new URL(window!.xxdkBasePath + '/dist/channelsIndexedDbWorker.js'); } export function dmIndexedDbWorkerPath(): URL { - return new URL(window!.xxdkBasePath + 'dist/dmIndexedDbWorker.js'); + return new URL(window!.xxdkBasePath + '/dist/dmIndexedDbWorker.js'); } export function stateIndexedDbWorkerPath() { - return new URL(window!.xxdkBasePath + 'dist/stateIndexedDbWorker.js'); + return new URL(window!.xxdkBasePath + '/dist/stateIndexedDbWorker.js'); }