Merge pull request #835 from PaulAvery/next
Do not use `window` when it is not available
This commit is contained in:
commit
0b4ec86221
3 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
void (function (global, factory) { // eslint-disable-line
|
void (function (global, factory) { // eslint-disable-line
|
||||||
"use strict"
|
"use strict"
|
||||||
/* eslint-disable no-undef */
|
/* eslint-disable no-undef */
|
||||||
var m = factory(window)
|
var m = factory(typeof window !== "undefined" ? window : {})
|
||||||
if (typeof module === "object" && module != null && module.exports) {
|
if (typeof module === "object" && module != null && module.exports) {
|
||||||
module.exports = m
|
module.exports = m
|
||||||
} else if (typeof define === "function" && define.amd) {
|
} 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