Skip to content

Commit

Permalink
Merge pull request #1 from renatorib/hotfix/includes-indexof
Browse files Browse the repository at this point in the history
Avoid browser compatibilty errors.
  • Loading branch information
renatorib authored Mar 6, 2017
2 parents 08a6149 + 03a2424 commit d80d10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import reducer from './reducer';

// check whether we're running on node/browser
const { navigator } = global;
const isBrowser = navigator && navigator.userAgent !== 'storyshots' && !navigator.userAgent.includes('Node.js');
const isBrowser = navigator && navigator.userAgent !== 'storyshots' && !navigator.userAgent.indexOf('Node.js') > -1;

const storyStore = new StoryStore();
const reduxStore = createStore(reducer);
Expand Down

0 comments on commit d80d10f

Please sign in to comment.