origin does not exist in firefox, use protocol + host

This commit is contained in:
j 2013-02-14 13:19:41 +05:30
parent 5ce7a597d3
commit 3c4d5d4a00

View file

@ -20,7 +20,7 @@ function getEmbedURL(id, videoURL) {
points = parts[parts.length - 1].split(','),
outPoint = 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
+ '&paused=false&showCloseButton=true';
}