This commit is contained in:
Bruno Windels 2020-12-16 10:58:35 +01:00
parent 46b6495e71
commit c3b2254b9d

View File

@ -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));
}); });
} }