diff --git a/web_src/js/features/install.js b/web_src/js/features/install.js index c1cc22b201d7a..23122ca4c3834 100644 --- a/web_src/js/features/install.js +++ b/web_src/js/features/install.js @@ -50,13 +50,13 @@ function initPreInstall() { const $appUrl = $('#app_url'); const configAppUrl = $appUrl.val(); - if (configAppUrl.includes('://localhost') || configAppUrl.includes('://127.0.0.1')) { + if (configAppUrl.includes('://localhost')) { $appUrl.val(window.location.href); } const $domain = $('#domain'); const configDomain = $domain.val().trim(); - if (configDomain === 'localhost' || configDomain === '127.0.0.1') { + if (configDomain === 'localhost') { $domain.val(window.location.hostname); }