forked from MapComplete/MapComplete
Fix rendering of multianswers, other small bug fixes
This commit is contained in:
parent
46254434db
commit
ad08a55517
13 changed files with 68 additions and 62 deletions
|
@ -43,16 +43,14 @@ export default class Hash {
|
|||
|
||||
window.onhashchange = () => {
|
||||
let newValue = window.location.hash.substr(1);
|
||||
console.log("The hash is now:", newValue)
|
||||
if (newValue === "") {
|
||||
newValue = undefined;
|
||||
}
|
||||
hash.setData(newValue)
|
||||
}
|
||||
|
||||
window.addEventListener('popstate', e => {
|
||||
window.addEventListener('popstate', _ => {
|
||||
let newValue = window.location.hash.substr(1);
|
||||
console.log("Popstate: the hash is now:", newValue)
|
||||
if (newValue === "") {
|
||||
newValue = undefined;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue