aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/install.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/install.ts')
-rw-r--r--web_src/js/features/install.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/web_src/js/features/install.ts b/web_src/js/features/install.ts
index dddeb1e954..ca4bcce881 100644
--- a/web_src/js/features/install.ts
+++ b/web_src/js/features/install.ts
@@ -12,11 +12,12 @@ export function initInstall() {
initPreInstall();
}
}
+
function initPreInstall() {
const defaultDbUser = 'gitea';
const defaultDbName = 'gitea';
- const defaultDbHosts = {
+ const defaultDbHosts: Record<string, string> = {
mysql: '127.0.0.1:3306',
postgres: '127.0.0.1:5432',
mssql: '127.0.0.1:1433',
@@ -103,7 +104,7 @@ function initPreInstall() {
}
function initPostInstall() {
- const el = document.querySelector('#goto-user-login');
+ const el = document.querySelector('#goto-after-install');
if (!el) return;
const targetUrl = el.getAttribute('href');