Fixing navigation adding duplicates
This commit is contained in:
@@ -40,6 +40,7 @@ function locationChange() {
|
|||||||
let wrapper = document.querySelector("#wrapper");
|
let wrapper = document.querySelector("#wrapper");
|
||||||
if(wrapper) {
|
if(wrapper) {
|
||||||
wrapper.replaceWith(new window.routes[URL]())
|
wrapper.replaceWith(new window.routes[URL]())
|
||||||
|
document.body.children[0].id = "wrapper"
|
||||||
} else {
|
} else {
|
||||||
document.body.prepend(new window.routes[URL]())
|
document.body.prepend(new window.routes[URL]())
|
||||||
document.body.children[0].id = "wrapper"
|
document.body.children[0].id = "wrapper"
|
||||||
|
|||||||
Reference in New Issue
Block a user