-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed throw-warning for components
- Loading branch information
1 parent
f35ce74
commit 98bb6c9
Showing
2 changed files
with
1 addition
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
const ignored = [ | ||
'Warning: React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers. http://fb.me/react-polyfills' | ||
]; | ||
|
||
// eslint-disable-next-line no-console | ||
console.warn = (...args) => { | ||
throw new Error(...args); | ||
}; | ||
// eslint-disable-next-line no-console | ||
console.error = (...args) => { | ||
if (ignored.includes(args[0])) { | ||
return; | ||
} | ||
throw new Error(...args); | ||
}; |