From 859f44db4376a2b35178f215bb236c4ed8bb4aab Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 5 Mar 2018 22:15:22 -0500 Subject: [PATCH] only perpend http if there is no protocol --- src/app/services/importService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/importService.js b/src/app/services/importService.js index b5b47cd29b..8eebf73de2 100644 --- a/src/app/services/importService.js +++ b/src/app/services/importService.js @@ -191,7 +191,7 @@ function fixUri(uri) { uri = uri.toLowerCase().trim(); - if (!uri.startsWith('http') && uri.indexOf('.') >= 0) { + if (uri.indexOf('://') === -1 && uri.indexOf('.') >= 0) { uri = 'http://' + uri; }