fix: make parseUrl helper always have a protocl (#4673)

Fixes #3100.
This commit is contained in:
Marc A. Modrow
2017-10-31 14:48:12 -04:00
committed by Gary Katsevman
parent e2af322313
commit bebca9ce0b
+4
View File
@@ -81,6 +81,10 @@ export const parseUrl = function(url) {
details.host = details.host.replace(/:443$/, '');
}
if (!details.protocol) {
details.protocol = window.location.protocol;
}
if (addToBody) {
document.body.removeChild(div);
}