mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-24 18:46:12 +08:00
Skip frontend ROOT_URL check on installation page, remove unnecessary global var (#19291)
Skip `checkAppUrl` message on installation page because the ROOT_URL is not determined yet Move global var `supportedDbTypeNames` into `install.Init` as a local var
This commit is contained in:
@ -358,6 +358,9 @@ export function checkAppUrl() {
|
||||
if (curUrl.startsWith(appUrl)) {
|
||||
return;
|
||||
}
|
||||
if (document.querySelector('.page-content.install')) {
|
||||
return; // no need to show the message on the installation page
|
||||
}
|
||||
showGlobalErrorMessage(`Your ROOT_URL in app.ini is ${appUrl} but you are visiting ${curUrl}
|
||||
You should set ROOT_URL correctly, otherwise the web may not work correctly.`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user