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
|
|
@ -1,3 +1,3 @@
|
|||
"use strict"
|
||||
|
||||
module.exports = require("./render/render")(window)
|
||||
module.exports = require("./render/render")(typeof window !== "undefined" ? window : null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue