forked from 0x2620/pandora
fix embed url in firefox
This commit is contained in:
parent
6f9e9676cf
commit
7bc98ad2ad
1 changed files with 3 additions and 1 deletions
|
@ -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] != '_') {
|
||||||
|
|
Loading…
Reference in a new issue