Skip to content

Commit 22d2df5

Browse files
authored
only check "localhost"
1 parent b71420d commit 22d2df5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/features/install.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ function initPreInstall() {
5050

5151
const $appUrl = $('#app_url');
5252
const configAppUrl = $appUrl.val();
53-
if (configAppUrl.includes('://localhost') || configAppUrl.includes('://127.0.0.1')) {
53+
if (configAppUrl.includes('://localhost')) {
5454
$appUrl.val(window.location.href);
5555
}
5656

5757
const $domain = $('#domain');
5858
const configDomain = $domain.val().trim();
59-
if (configDomain === 'localhost' || configDomain === '127.0.0.1') {
59+
if (configDomain === 'localhost') {
6060
$domain.val(window.location.hostname);
6161
}
6262

0 commit comments

Comments
 (0)