diff options
author | Ćukasz <lukasz.zdanikowski@gmail.com> | 2018-01-08 15:15:22 +0300 |
---|---|---|
committer | Johann-S <johann.servoire@gmail.com> | 2018-01-08 15:15:22 +0300 |
commit | 1a231e4bee0e422b605f7454b697bd078e17ba3d (patch) | |
tree | 4465ccc78ae950be6980f535d3b9e2cf6d8dcb86 /js/src/util.js | |
parent | 34cd2038d2b16f305919e1fc36ff45913e3d1dfd (diff) |
Check for window before window.QUnit (#25199)
Diffstat (limited to 'js/src/util.js')
-rw-r--r-- | js/src/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/util.js b/js/src/util.js index 14653c86e0..0ffbb76a3e 100644 --- a/js/src/util.js +++ b/js/src/util.js @@ -39,7 +39,7 @@ const Util = (($) => { } function transitionEndTest() { - if (window.QUnit) { + if (typeof window !== 'undefined' && window.QUnit) { return false } |