Allow Mithril to be loaded in non-browser environments without modification (#2633)
This commit is contained in:
parent
3ad404039f
commit
045e4f720a
5 changed files with 5 additions and 4 deletions
|
|
@ -3,4 +3,4 @@
|
|||
var PromisePolyfill = require("./promise/promise")
|
||||
var mountRedraw = require("./mount-redraw")
|
||||
|
||||
module.exports = require("./request/request")(window, PromisePolyfill, mountRedraw.redraw)
|
||||
module.exports = require("./request/request")(typeof window !== "undefined" ? window : null, PromisePolyfill, mountRedraw.redraw)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue