Skip to content
Browse files

Added ZER0's hack for bailing out on iframes.

  • Loading branch information...
1 parent 9f1cbe4 commit 7e4007ea95749387a8eb78c4432dfcd50669545d @canuckistani committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 data/dotjs.js
View
3 data/dotjs.js
@@ -3,6 +3,9 @@
*/
(function() {
self.port.on("load-scripts", function(msg) {
+ // bail out if we're in an iframe
+ if (window.frameElement) return;
+
if (msg.jquery) {
eval(msg.jquery);
}

0 comments on commit 7e4007e

Please sign in to comment.
Something went wrong with that request. Please try again.