Skip to content

Commit

Permalink
moved origin test into try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Mar 4, 2014
1 parent 8693521 commit 772b9ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion oec/static/js/libs/d3plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -5862,8 +5862,14 @@ d3plus.forms.drop = function(vars,styles,timing) {
}

})

try {
var same_origin = window.parent.location.host == window.location.host;
}
catch (e) {
var same_origin = false
}

var same_origin = window.parent.location.host == window.location.host
if (same_origin) {
if (elem.self !== window.top) {
parent_click(elem.parent)
Expand Down

0 comments on commit 772b9ec

Please sign in to comment.