Fix RollUp-Error because of This is Undefined Rewrite

make it compatible with RollUp
rollup/rollup#759
MrRio/jsPDF#1533
This commit is contained in:
Aras Abbasi
2017-12-04 19:40:44 +01:00
committed by GitHub
parent c347c51f6e
commit 1bf9b35b54
+3 -1
View File
@@ -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