From 1a231e4bee0e422b605f7454b697bd078e17ba3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz?= Date: Mon, 8 Jan 2018 13:15:22 +0100 Subject: [PATCH] Check for window before window.QUnit (#25199) --- js/src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.47.2