diff --git a/src/core/Common.js b/src/core/Common.js index 28e29be..70d38d8 100644 --- a/src/core/Common.js +++ b/src/core/Common.js @@ -257,7 +257,7 @@ module.exports = Common; * @return {number} the current timestamp */ Common.now = function() { - if (window.performance) { + if (typeof window !== 'undefined' && window.performance) { if (window.performance.now) { return window.performance.now(); } else if (window.performance.webkitNow) {