export function isFiltered(action, localFilter) {
  if (
    !localFilter && !window.devToolsOptions ||
    !window.devToolsOptions.filter || window.devToolsOptions.filter === 'DO_NOT_FILTER'
  ) return false;

  const { whitelist, blacklist } = localFilter || window.devToolsOptions;
  return (
    whitelist && !action.type.match(whitelist) ||
    blacklist && action.type.match(blacklist)
  );
}

@@ -43,16 +43,82 @@
 lter) %7B%0A
+  if (typeof window === 'undefined' && !localFilter) return true;%0A
   if (%0A 

Apply filters only if window is defined (fix node support)