diff options
| author | Marin Ivanov <[email protected]> | 2024-08-20 16:57:28 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2024-08-20 16:57:28 +0300 |
| commit | ae3c05148848d029c188553e7e5211b6d1b63d1a (patch) | |
| tree | c8de2971f85f55e615aa850a678fee5518804d3f | |
| parent | 7661fbf35526696c6a563e8d6378e040930a0de9 (diff) | |
cleanup
| -rw-r--r-- | app.js | 9 | ||||
| -rw-r--r-- | index.html | 2 | ||||
| -rw-r--r-- | ka.js | 2 |
3 files changed, 6 insertions, 7 deletions
@@ -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(); })() @@ -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> @@ -55,6 +55,6 @@ }; reload(); window.addEventListener("hashchange", reload); - app.reload = reload; + root.reload = reload; }; })() |
