From d8c81c105f3f952326ead7700c8cf6da2690eba0 Mon Sep 17 00:00:00 2001 From: Eli Grey Date: Mon, 21 Oct 2013 16:17:17 -0400 Subject: [PATCH] Simplifying minj's changes --- FileSaver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FileSaver.js b/FileSaver.js index 303bb93..378a9dc 100644 --- a/FileSaver.js +++ b/FileSaver.js @@ -1,6 +1,6 @@ /* FileSaver.js * A saveAs() FileSaver implementation. - * 2013-01-23 + * 2013-10-21 * * By Eli Grey, http://eligrey.com * License: X11/MIT @@ -224,7 +224,7 @@ var saveAs = saveAs view.addEventListener("unload", process_deletion_queue, false); return saveAs; -}(typeof self !== 'undefined' ? self : typeof this !== 'undefined' && this.content ? this.content : null)); +}(this.self || this.window || this.content)); // `self` is undefined in Firefox for Android content script context // while `this` is nsIContentFrameMessageManager // with an attribute `content` that corresponds to the window