fix #172
This commit is contained in:
parent
46b6495e71
commit
c3b2254b9d
@ -28,11 +28,11 @@ export async function main(container) {
|
|||||||
preferences: new Preferences(window.localStorage),
|
preferences: new Preferences(window.localStorage),
|
||||||
origin: location.origin,
|
origin: location.origin,
|
||||||
});
|
});
|
||||||
vm.updateHash(location.hash);
|
vm.updateHash(decodeURIComponent(location.hash));
|
||||||
window.__rootvm = vm;
|
window.__rootvm = vm;
|
||||||
const view = new RootView(vm);
|
const view = new RootView(vm);
|
||||||
container.appendChild(view.mount());
|
container.appendChild(view.mount());
|
||||||
window.addEventListener('hashchange', () => {
|
window.addEventListener('hashchange', () => {
|
||||||
vm.updateHash(location.hash);
|
vm.updateHash(decodeURIComponent(location.hash));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user