Skip to content
Snippets Groups Projects
Commit c3b2254b authored by Bruno Windels's avatar Bruno Windels
Browse files

fix #172

parent 46b6495e
No related branches found
No related tags found
No related merge requests found
......@@ -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));
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment