Skip to content

Commit

Permalink
Fix bug in IE test that breaks logging for node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Nov 7, 2019
1 parent 08441fc commit e2f5fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loglevel.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// Slightly dubious tricks to cut down minimized file size
var noop = function() {};
var undefinedType = "undefined";
var isIE = (
var isIE = (typeof window !== undefinedType) && (
window.navigator.userAgent.indexOf('Trident/') >= 0 ||
window.navigator.userAgent.indexOf('MSIE ') >= 0
);
Expand Down

0 comments on commit e2f5fdf

Please sign in to comment.