-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,471 additions
and
2,480 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
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,3 +1,7 @@ | ||
const port = process.argv.find(e => e.startsWith('--port=')).split('=')[1] | ||
function argWith(name) { | ||
return process.argv.find(e => e.startsWith(`--${name}=`))?.split('=')?.[1] | ||
} | ||
|
||
window.apiPort = parseInt(port) | ||
window.apiPort = parseInt(argWith('port')) | ||
window.id = argWith('id') | ||
window.modal = argWith('modal') === 'true' |
Oops, something went wrong.