Switch to window logging.

pull/2174/head
warrickct 4 years ago
parent 5e65fc5f30
commit 614cdccd2c

@ -224,10 +224,10 @@ window.getOpenGroupBlockList = () => {
.split('\n'); .split('\n');
// TODO: trim whitespace // TODO: trim whitespace
console.warn({ blockList }); window.log.warn({ blockList });
window.groupBlockList = blockList; window.groupBlockList = blockList;
} catch (e) { } catch (e) {
console.error({ e }); window.info.error({ e });
return []; return [];
} }
} }

@ -52,7 +52,7 @@ export function parseOpenGroupV2(urlWithPubkey: string): OpenGroupV2Room | undef
*/ */
export const isGroupInBlockList = async (serverPubKey: string): Promise<boolean> => { export const isGroupInBlockList = async (serverPubKey: string): Promise<boolean> => {
const blockList = window?.getOpenGroupBlockList(); const blockList = window?.getOpenGroupBlockList();
console.warn({ blockList }); window?.log?.warn({ blockList });
if (!blockList || !blockList.length) { if (!blockList || !blockList.length) {
return false; return false;
} }

Loading…
Cancel
Save