Add AMD export

This commit is contained in:
Jaakko Juutila
2014-03-20 16:13:29 +02:00
parent 5c0a372216
commit d8388a1a3c
+7 -1
View File
@@ -244,4 +244,10 @@ var saveAs = saveAs
// while `this` is nsIContentFrameMessageManager
// with an attribute `content` that corresponds to the window
if (typeof module !== "undefined") module.exports = saveAs;
if (typeof module !== "undefined" && module !== null) {
module.exports = saveAs;
} else if ((typeof define !== "undefined" && define !== null) && (define.amd != null)) {
define([], function() {
return saveAs;
});
}