Skip to content

Conversation

@lukaszzdanikowski
Copy link
Contributor

This fixes error window is undefined on env where the window is not available.

This fixes error ```window is undefined``` on env where the window is not available.
js/src/util.js Outdated

function transitionEndTest() {
if (window.QUnit) {
if (window && window.QUnit) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be better like that :

if (typeof window !== 'undefined' && window.QUnit) {

Adjuste window check according to comment
@Johann-S Johann-S merged commit 1a231e4 into twbs:v4-dev Jan 8, 2018
@mdo mdo mentioned this pull request Jan 8, 2018
@Johann-S
Copy link
Member

Johann-S commented Jan 8, 2018

Thank you @lukaszzdanikowski 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants