diff --git a/FileSaver.js b/FileSaver.js index fb71494..a74007c 100644 --- a/FileSaver.js +++ b/FileSaver.js @@ -173,7 +173,9 @@ var saveAs = saveAs || (function(view) { }( typeof self !== "undefined" && self || typeof window !== "undefined" && window - || this.content + || typeof global !== "undefined && global + || Function('return this.content')() + || Function('return this')() )); // `self` is undefined in Firefox for Android content script context // while `this` is nsIContentFrameMessageManager