MM-45981_Desktop: Add Server Screen: Improve Onboarding screens (#2243)
This commit is contained in:
@@ -7,6 +7,7 @@ export const DEVELOPMENT = 'development';
|
||||
|
||||
export const SECOND = 1000;
|
||||
export const RELOAD_INTERVAL = 5 * SECOND;
|
||||
export const MODAL_TRANSITION_TIMEOUT = 400;
|
||||
|
||||
export const MAX_SERVER_RETRIES = 3;
|
||||
|
||||
|
@@ -19,6 +19,10 @@ function isValidURI(testURL: string) {
|
||||
return Boolean(isUri(testURL));
|
||||
}
|
||||
|
||||
function startsWithProtocol(testURL: string) {
|
||||
return Boolean((/^https?:\/\/.*/).test(testURL.trim()));
|
||||
}
|
||||
|
||||
function parseURL(inputURL: URL | string) {
|
||||
if (inputURL instanceof URL) {
|
||||
return inputURL;
|
||||
@@ -237,4 +241,5 @@ export default {
|
||||
isChannelExportUrl,
|
||||
isUrlType,
|
||||
cleanPathName,
|
||||
startsWithProtocol,
|
||||
};
|
||||
|
Reference in New Issue
Block a user