Fix using test mode

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

View File

@ -237,7 +237,7 @@ export class AppNavigationController {
public replaceState() { public replaceState() {
this.debug && this.log.warn('replace'); 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); 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(); setWorkerProxy();