diff --git a/mithril.js b/mithril.js index 2dc953c6..f5631848 100644 --- a/mithril.js +++ b/mithril.js @@ -530,7 +530,7 @@ Mithril = m = new function app(window) { m.deps.factory = app return m -}(this) +}(typeof window != "undefined" ? window : {}) if (typeof module != "undefined" && module !== null) module.exports = m if (typeof define == "function" && define.amd) define(function() {return m})