Skip to content

Commit

Permalink
Apply filters only if window is defined (fix node support)
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Nov 14, 2016
1 parent d308531 commit 5933dbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/filters.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export function isFiltered(action, localFilter) {
if (typeof window === 'undefined' && !localFilter) return true;
if (
!localFilter && !window.devToolsOptions ||
!window.devToolsOptions.filter || window.devToolsOptions.filter === 'DO_NOT_FILTER'
Expand Down

0 comments on commit 5933dbf

Please sign in to comment.