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