html files for pages

This commit is contained in:
Jan Prochazka
2024-09-03 12:57:52 +02:00
parent 90dfe889f7
commit 3a0a3a2ddb
9 changed files with 41 additions and 36 deletions

View File

@@ -9,9 +9,6 @@ import NotLoggedPage from './NotLoggedPage.svelte';
import ErrorPage from './ErrorPage.svelte';
import EnterLicensePage from './EnterLicensePage.svelte';
const params = new URLSearchParams(location.search);
const page = params.get('page');
const isOauthCallback = handleOauthCallback();
localStorageGarbageCollector();
@@ -21,7 +18,7 @@ function createApp() {
return null;
}
switch (page) {
switch (window['dbgate_page']) {
case 'login':
return new LoginPage({
target: document.body,