Skip to content

Commit

Permalink
asap
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard authored and Richard committed Jan 29, 2020
1 parent a373a73 commit 2a6da85
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion voir.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ class Router {
constructor(options) {
window.addEventListener("load",()=>{
this.listen();
this.routeCheck();
setTimeout(()=>{
this.routeCheck();
},1);
})
}

Expand All @@ -27,6 +29,9 @@ class Router {

navigate(path) {
window.history.pushState(null, null, this.root + this.clearSlashes(path));
setTimeout(()=>{
this.routeCheck();
},1);
};

isExternal(path){
Expand Down

0 comments on commit 2a6da85

Please sign in to comment.