fix embed url in firefox

This commit is contained in:
j 2012-03-02 09:58:57 +01:00
parent 6f9e9676cf
commit 7bc98ad2ad
1 changed files with 3 additions and 1 deletions

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] != '_') {