diff --git a/library/modules/$.global.js b/library/modules/$.global.js index 8c15fdc5b62d..8b31e7387269 100644 --- a/library/modules/$.global.js +++ b/library/modules/$.global.js @@ -1,3 +1,3 @@ -var global = typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); +var global = typeof window != 'undefined' && window.Math == Math ? window : Function('return this')(); module.exports = global; if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef \ No newline at end of file diff --git a/modules/$.global.js b/modules/$.global.js index 8c15fdc5b62d..8b31e7387269 100644 --- a/modules/$.global.js +++ b/modules/$.global.js @@ -1,3 +1,3 @@ -var global = typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); +var global = typeof window != 'undefined' && window.Math == Math ? window : Function('return this')(); module.exports = global; if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef \ No newline at end of file