diff options
Diffstat (limited to 'app.js')
| -rw-r--r-- | app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -97,8 +97,8 @@ const routes = { p("The requested page is not available.") ), }; -const onchange = () => { - doc.querySelectorAll('nav a').forEach(x => x.$cls((location.href===x.href)?"active":"")); +const onchange = (h) => { + doc.querySelectorAll('nav a').forEach(x => x.$cls(x.attr("href")===h?"active":"")); loading(isLoading); }; |
