-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dynamic the port, so that you could open multiple software to serve d…
…ifferent folders
- Loading branch information
1 parent
ea9da2e
commit 3039c43
Showing
5 changed files
with
78 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
var expected_host = "" | ||
/* | ||
if (window.location.port != '5000') { | ||
expected_host = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + '5000': '') + "/" | ||
} else { | ||
expected_host = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '') + "/" | ||
} | ||
*/ | ||
expected_host = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '') + "/" | ||
|
||
export const HOST = expected_host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.