mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 22:22:00 +00:00
change console.log to styled log
This commit is contained in:
@@ -37,6 +37,7 @@ class Toaster extends Logger {
|
|||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
let instance: any;
|
let instance: any;
|
||||||
|
const self = this;
|
||||||
const focusManager = findModuleChild((m) => {
|
const focusManager = findModuleChild((m) => {
|
||||||
if (typeof m !== 'object') return false;
|
if (typeof m !== 'object') return false;
|
||||||
for (let prop in m) {
|
for (let prop in m) {
|
||||||
@@ -46,11 +47,9 @@ class Toaster extends Logger {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const focusWorkaroundPatch = replacePatch(focusManager.prototype, 'BFocusWithin', function () {
|
const focusWorkaroundPatch = replacePatch(focusManager.prototype, 'BFocusWithin', function () {
|
||||||
// @ts-ignore
|
|
||||||
console.log(this as any);
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (this.m_node?.m_element && this.m_node?.m_element.classList.contains(staticClasses.TabGroupPanel)) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user