merge with server

This commit is contained in:
2023-12-11 16:15:21 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ const navigateTo = async (uri) => {
history.pushState(null, null, uri);
};
const router = async (uri = "") => {
const router = async (uri) => {
const routes = [
{ path: "/", view: Dashboard },
{ path: "/profiles", view: ProfilesView},
@ -86,7 +86,7 @@ const router = async (uri = "") => {
return 0;
};
window.addEventListener("popstate", router);
window.addEventListener("popstate", function() {router(location.pathname)});
document.addEventListener("DOMContentLoaded", () => {
document.body.addEventListener("click", e => {