Skip to content

Commit

Permalink
Merge pull request #156 from BurkovBA/master
Browse files Browse the repository at this point in the history
window might not be defined in node.js environment.
  • Loading branch information
onokumus authored Feb 14, 2018
2 parents 887a56a + 0753541 commit 488a5ce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/metisMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}

function transitionEndTest() {
if (window.QUnit) {
if (typeof window !== 'undefined' && window.QUnit) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/metisMenu.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 488a5ce

Please sign in to comment.