File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const WINDOW_POSITION = process.env.WINDOW_POSITION || "0,0";
1818const PERSISTENT_DATA = process . env . PERSISTENT || "0" ;
1919const REMOTE_DEBUG_PORT = process . env . REMOTE_DEBUG_PORT || 35173 ;
2020const FLAGS = process . env . FLAGS || null ;
21- const HTTPS_REGEX = / ^ h t t p s ? : \/ \/ / i; //regex for HTTP/S prefix
21+ const PROTOCOL_REGEX = / ^ [ a - z A - Z 0 - 9 - ] + : \/ \/ / i; // regex for any protocol prefix
2222
2323// Environment variables which can be overriden from the API
2424let kioskMode = process . env . KIOSK || "0" ;
@@ -44,7 +44,8 @@ async function getUrlToDisplayAsync() {
4444
4545 // Prepend http:// if the LAUNCH_URL doesn't have it.
4646 // This is needed for the --app flag to be used for kiosk mode
47- if ( ! HTTPS_REGEX . test ( launchUrl ) ) {
47+
48+ if ( ! PROTOCOL_REGEX . test ( launchUrl ) ) {
4849 launchUrl = `http://${ launchUrl } ` ;
4950 }
5051
You can’t perform that action at this time.
0 commit comments