summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.js9
-rw-r--r--index.html2
-rw-r--r--ka.js2
3 files changed, 6 insertions, 7 deletions
diff --git a/app.js b/app.js
index e9dfc60..b8f684d 100644
--- a/app.js
+++ b/app.js
@@ -116,17 +116,16 @@
p("The requested page is not available.")
),
});
- function app(h) {
+
+ mount(app, (h) => {
loading(isLoading);
return [
- div(error && CErr(error.message)).$cls("noflex"),
+ div(error && CErr(error.message)),
main(
navbar(h),
section(router(h))
),
];
- }
-
- mount(root, app);
+ });
loadconfig();
})()
diff --git a/index.html b/index.html
index 363f319..b57f796 100644
--- a/index.html
+++ b/index.html
@@ -8,7 +8,7 @@
<body>
<div class="container">
<header><big>🛠️ WebIF 2.0</big></header>
- <div id="root"></div>
+ <div id="app"></div>
</div>
<div id="loader" title="цъкни да скриеш">
<div>
diff --git a/ka.js b/ka.js
index a14ae7f..ea75b2a 100644
--- a/ka.js
+++ b/ka.js
@@ -55,6 +55,6 @@
};
reload();
window.addEventListener("hashchange", reload);
- app.reload = reload;
+ root.reload = reload;
};
})()