Skip to content

Commit

Permalink
Don't debug log in UnitTest
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Jul 14, 2021
1 parent e748de2 commit d5ffef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bidiMapper/utils/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
*/
export function log(type: string): (...message: any[]) => void {
return (...messages: any[]) => {
console.log(type, ...messages);

// If run in browser, add debug message to the page.
if (typeof window !== 'undefined' && window?.document?.documentElement) {
console.log(type, ...messages);

const elementId = type + '_log';

if (!window.document.getElementById(elementId)) {
Expand Down

0 comments on commit d5ffef2

Please sign in to comment.