origin does not exist in firefox, use protocol + host
This commit is contained in:
parent
5ce7a597d3
commit
3c4d5d4a00
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ function getEmbedURL(id, videoURL) {
|
||||||
points = parts[parts.length - 1].split(','),
|
points = parts[parts.length - 1].split(','),
|
||||||
outPoint = points.pop(),
|
outPoint = points.pop(),
|
||||||
inPoint = points.pop();
|
inPoint = points.pop();
|
||||||
return parsed.origin + '/' + item + '/embed?view=player&id=' + id
|
return parsed.protocol + '//' + parsed.host + '/' + item + '/embed?view=player&id=' + id
|
||||||
+ '&in=' + inPoint + '&out=' + outPoint
|
+ '&in=' + inPoint + '&out=' + outPoint
|
||||||
+ '&paused=false&showCloseButton=true';
|
+ '&paused=false&showCloseButton=true';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue