Skip to content

Commit 2206d91

Browse files
Fixed broken tests on Microsoft Edge
1 parent 9b704f9 commit 2206d91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/fixtures/globals.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
window.userAgent = userAgentParser.parse(navigator.userAgent);
1717
window.userAgent.isNode = false;
1818
window.userAgent.isBrowser = true;
19+
window.userAgent.isIE = window.userAgent.isIE || /Edge/.test(navigator.userAgent);
1920
}
2021
else {
2122
// Expose Node globals

0 commit comments

Comments
 (0)