From 97ee639d6268fc63f5a399f2a5bf30209c0f8b3a Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Mon, 17 May 2021 15:28:45 -0400 Subject: [PATCH] fix: Fix improper use of url.protocol --- ui/desktop/electron-app/src/utils/sanitizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/desktop/electron-app/src/utils/sanitizer.js b/ui/desktop/electron-app/src/utils/sanitizer.js index 9e635b0d5..5dbc5efa9 100644 --- a/ui/desktop/electron-app/src/utils/sanitizer.js +++ b/ui/desktop/electron-app/src/utils/sanitizer.js @@ -21,7 +21,7 @@ module.exports = { urlValidate: (str) => { try { const url = new URL(str); - return `${url.protocol}://${url.host}`; + return `${url.protocol}//${url.host}`; } catch (e) { // Parse error throw new Error(`URL ${str} could not be validated.`);