Do not use window when it is not available
This commit is contained in:
parent
df114a4ee2
commit
814b5035ee
3 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
(function (global, factory) {
|
||||
"use strict"
|
||||
/* eslint-disable no-undef */
|
||||
var m = factory(window)
|
||||
var m = factory(typeof window !== "undefined" ? window : {})
|
||||
if (typeof module === "object" && module != null && module.exports) {
|
||||
module.exports = m
|
||||
} else if (typeof define === "function" && define.amd) {
|
||||
|
|
|
|||
2
mithril.min.js
vendored
2
mithril.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue