From e9782d0a24a4112d70cee797ac63731501bb5732 Mon Sep 17 00:00:00 2001 From: makame Date: Wed, 6 May 2020 16:26:12 +0200 Subject: [PATCH] fix ignore logs --- src/electron/git-log.hooks.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/electron/git-log.hooks.js b/src/electron/git-log.hooks.js index 0fbb049..942267a 100644 --- a/src/electron/git-log.hooks.js +++ b/src/electron/git-log.hooks.js @@ -8,7 +8,7 @@ const ignoreLines = [ "Warning: Using UNSAFE_componentWillMount", "Warning: validateDOMNesting(...)", "Warning: A future version of React will block javascript", - "Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended", + "Warning: Using UNSAFE_componentWillReceiveProps", "Warning: Legacy context API has been detected within a strict-mode tree", "Download the React DevTools for a better development experience", "[HMR] Waiting for update signal from WDS...", @@ -20,8 +20,8 @@ const hasIgnores = (line) => { return ( line && line.includes && - ignoreLines.toLowerCase && - ignoreLines.toLowerCase().find((s) => line.includes(s)) + line.toLowerCase && + ignoreLines.find((s) => line.toLowerCase().includes(s.toLowerCase())) ); };