From 614cdccd2c09709375a443ceb254d9932235c13a Mon Sep 17 00:00:00 2001 From: warrickct Date: Mon, 7 Mar 2022 11:27:18 +1100 Subject: [PATCH] Switch to window logging. --- preload.js | 4 ++-- ts/session/apis/open_group_api/opengroupV2/JoinOpenGroupV2.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/preload.js b/preload.js index 75913945c..b6bb6c8b6 100644 --- a/preload.js +++ b/preload.js @@ -224,10 +224,10 @@ window.getOpenGroupBlockList = () => { .split('\n'); // TODO: trim whitespace - console.warn({ blockList }); + window.log.warn({ blockList }); window.groupBlockList = blockList; } catch (e) { - console.error({ e }); + window.info.error({ e }); return []; } } diff --git a/ts/session/apis/open_group_api/opengroupV2/JoinOpenGroupV2.ts b/ts/session/apis/open_group_api/opengroupV2/JoinOpenGroupV2.ts index ea6f36733..b4fa42526 100644 --- a/ts/session/apis/open_group_api/opengroupV2/JoinOpenGroupV2.ts +++ b/ts/session/apis/open_group_api/opengroupV2/JoinOpenGroupV2.ts @@ -52,7 +52,7 @@ export function parseOpenGroupV2(urlWithPubkey: string): OpenGroupV2Room | undef */ export const isGroupInBlockList = async (serverPubKey: string): Promise => { const blockList = window?.getOpenGroupBlockList(); - console.warn({ blockList }); + window?.log?.warn({ blockList }); if (!blockList || !blockList.length) { return false; }