1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-24 08:42:25 +02:00

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

Fixes #3100.
This commit is contained in:
Marc A. Modrow 2017-10-31 19:48:12 +01:00 committed by Gary Katsevman
parent e2af322313
commit bebca9ce0b

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);
}