forked from 0x2620/pandora
dont use window.top, throws security exception
This commit is contained in:
parent
bd9f5164b8
commit
941c4f9759
2 changed files with 3 additions and 3 deletions
|
@ -135,7 +135,7 @@ pandora.ui.embedPlayer = function() {
|
|||
+ document.location.hostname + '/'
|
||||
+ options.item + '/'
|
||||
+ Ox.formatDuration($player.options('position'));
|
||||
window.top.open(url, '_blank');
|
||||
window.open(url, '_blank');
|
||||
},
|
||||
playing: function(data) {
|
||||
setPosition(data.position, true);
|
||||
|
|
|
@ -255,7 +255,7 @@ pandora.clickLink = function(e) {
|
|||
}
|
||||
pandora.URL.push(e.target.pathname, true);
|
||||
} else {
|
||||
window.top.open('/url=' + encodeURIComponent(e.target.href), '_blank');
|
||||
window.open('/url=' + encodeURIComponent(e.target.href), '_blank');
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -274,7 +274,7 @@ pandora.createLinks = function($element) {
|
|||
) {
|
||||
e.preventDefault();
|
||||
if (isExternalLink(e.target)) {
|
||||
window.top.open('/url=' + encodeURIComponent(e.target.href), '_blank');
|
||||
window.open('/url=' + encodeURIComponent(e.target.href), '_blank');
|
||||
} else {
|
||||
pandora.clickLink(e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue