From 7bc98ad2ad90d98de31d62e6661e62f105bef23b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 2 Mar 2012 09:58:57 +0100 Subject: [PATCH] fix embed url in firefox --- static/js/pandora/embedDialog.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/embedDialog.js b/static/js/pandora/embedDialog.js index e8c74bfe8..bf6c67ac5 100644 --- a/static/js/pandora/embedDialog.js +++ b/static/js/pandora/embedDialog.js @@ -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] != '_') {