Permalink
Browse files

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

Fixes #3100.
  • Loading branch information...
mmodrow authored and gkatsev committed Oct 31, 2017
1 parent e2af322 commit bebca9ce0bf82e6173372e013be8343d355b9d27
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/js/utils/url.js
View
@@ -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);
}

0 comments on commit bebca9c

Please sign in to comment.