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'; data.view = 'video';
function constructUrl(data) { 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 = []; query = [];
Ox.forEach(data, function(value, key) { Ox.forEach(data, function(value, key) {
if(key[0] != '_') { if(key[0] != '_') {