Skip to content

Commit 1a231e4

Browse files
lukaszzdanikowskiJohann-S
authored andcommitted
Check for window before window.QUnit (twbs#25199)
1 parent 34cd203 commit 1a231e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Util = (($) => {
3939
}
4040

4141
function transitionEndTest() {
42-
if (window.QUnit) {
42+
if (typeof window !== 'undefined' && window.QUnit) {
4343
return false
4444
}
4545

0 commit comments

Comments
 (0)