Skip to content

Commit

Permalink
Allow universal rendering
Browse files Browse the repository at this point in the history
Allow universal rendering by utilizing a stricter check for the existence of the window global.
  • Loading branch information
dballance committed Jul 7, 2016
1 parent 09495ec commit e0b8b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const printBuffer = options => logBuffer => {

export const storeLogger = (opts : Object = {}) => (reducer : Function) => {
let log = {};
const ua = window && window.navigator.userAgent ? window.navigator.userAgent : '';
const ua = typeof window !== 'undefined' && window.navigator.userAgent ? window.navigator.userAgent : '';
let ms_ie = false;
//fix for action display in IE
const old_ie = ua.indexOf('MSIE ');
Expand Down

0 comments on commit e0b8b71

Please sign in to comment.