From 2461f52ca798b8860721c7e7dbe08593da54b932 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 1 Oct 2022 21:24:10 -0400 Subject: change console.log to styled log --- frontend/src/toaster.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/toaster.tsx b/frontend/src/toaster.tsx index d03163eb..3fe2e87e 100644 --- a/frontend/src/toaster.tsx +++ b/frontend/src/toaster.tsx @@ -37,6 +37,7 @@ class Toaster extends Logger { async init() { let instance: any; + const self = this; const focusManager = findModuleChild((m) => { if (typeof m !== 'object') return false; for (let prop in m) { @@ -46,11 +47,9 @@ class Toaster extends Logger { }); const focusWorkaroundPatch = replacePatch(focusManager.prototype, 'BFocusWithin', function () { - // @ts-ignore - console.log(this as any); // @ts-ignore if (this.m_node?.m_element && this.m_node?.m_element.classList.contains(staticClasses.TabGroupPanel)) { - console.log('got the focus hook'); + self.debug('Intercepted friends re-focus'); return true; } -- cgit v1.2.3