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
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
var render = require("./render")
|
||||
|
||||
module.exports = require("./api/mount-redraw")(render, requestAnimationFrame, console)
|
||||
module.exports = require("./api/mount-redraw")(render, typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : null, typeof console !== "undefined" ? console : null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue