Skip to content

Commit

Permalink
only check "localhost"
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored Mar 3, 2023
1 parent b71420d commit 22d2df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web_src/js/features/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 22d2df5

Please sign in to comment.