fix embed url in firefox

This commit is contained in:
j 2012-03-02 09:58:57 +01:00
parent 6f9e9676cf
commit 7bc98ad2ad

View file

@ -34,7 +34,9 @@ pandora.ui.embedDialog = function(data) {
data.view = 'video';
function constructUrl(data) {
var url = document.location.origin + '/' + pandora.user.ui.item + '/embed?',
var url = document.location.protocol
+ '//' + document.location.host
+ '/' + pandora.user.ui.item + '/embed?',
query = [];
Ox.forEach(data, function(value, key) {
if(key[0] != '_') {