Fix using test mode

This commit is contained in:
Eduard Kuzmenko 2022-07-18 18:20:16 +02:00
parent ff4652530e
commit 6565dc362c
2 changed files with 8 additions and 3 deletions

View File

@ -237,7 +237,7 @@ export class AppNavigationController {
public replaceState() {
this.debug && this.log.warn('replace');
const url = location.origin + location.pathname + this.overriddenHash;
const url = location.origin + location.pathname + location.search + this.overriddenHash;
history.replaceState(this.id, '', url);
}

View File

@ -15,8 +15,13 @@ export default function setWorkerProxy() {
}
};
const workerProxy = new Proxy(Worker, workerHandler);
Worker = workerProxy;
[
Worker,
typeof(SharedWorker) !== 'undefined' && SharedWorker
].forEach((w) => {
if(!w) return;
window[w.name as any] = new Proxy(w, workerHandler);
});
}
setWorkerProxy();