Skip to content

Commit

Permalink
πŸ› [logs] Fix IE11 console.log issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaudan committed May 18, 2021
1 parent e5e507c commit 0bfa8ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/tools/display.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable no-console */
/* eslint-disable no-console, local-rules/disallow-side-effects */
/**
* Keep references on console methods to avoid triggering patched behaviors
*
Expand All @@ -7,7 +7,7 @@
* but we should be safe from infinite loop nonetheless.
*/
export const display: Pick<typeof console, 'log' | 'warn' | 'error'> = {
log: console.log,
warn: console.warn,
error: console.error,
log: console.log.bind(console),
warn: console.warn.bind(console),
error: console.error.bind(console),
}

0 comments on commit 0bfa8ff

Please sign in to comment.