Fix using test mode
This commit is contained in:
parent
ff4652530e
commit
6565dc362c
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user