This commit is contained in:
Bruno Windels 2020-12-16 10:58:35 +01:00
parent 46b6495e71
commit c3b2254b9d
1 changed files with 2 additions and 2 deletions

View File

@ -28,11 +28,11 @@ export async function main(container) {
preferences: new Preferences(window.localStorage),
origin: location.origin,
});
vm.updateHash(location.hash);
vm.updateHash(decodeURIComponent(location.hash));
window.__rootvm = vm;
const view = new RootView(vm);
container.appendChild(view.mount());
window.addEventListener('hashchange', () => {
vm.updateHash(location.hash);
vm.updateHash(decodeURIComponent(location.hash));
});
}