client/js: format code to ESLint

This commit is contained in:
Shyam Sunder
2020-06-04 14:09:35 -04:00
parent 48c9001194
commit 4329b1620f
67 changed files with 1150 additions and 533 deletions

View File

@ -51,7 +51,7 @@ class Context {
replaceState() {
history.replaceState(this.state, this.title, this.canonicalPath);
}
};
}
class Route {
constructor(path) {
@ -119,7 +119,7 @@ class Route {
return true;
}
};
}
class Router {
constructor() {
@ -217,14 +217,14 @@ class Router {
if (current === ctx.canonicalPath) {
return;
}
router.stop();
this.stop();
location.href = ctx.canonicalPath;
}
get url() {
return location.pathname + location.search + location.hash;
}
};
}
const _onPopState = router => {
let loaded = false;