decky-frontend-lib
Advanced tools
Comparing version 3.20.6 to 3.20.7
@@ -25,4 +25,4 @@ import { fakeRenderComponent } from '../utils'; | ||
for (let prop in m) { | ||
if ((m[prop]?.toString()?.includes('bInGamepadUI:') && | ||
fakeRenderComponent(() => m[prop]())?.type?.prototype?.RenderSubMenu) || | ||
if ((m[prop]?.toString()?.includes?.('bInGamepadUI:') && | ||
fakeRenderComponent(() => m[prop]({ overview: { appid: 7 } }))?.type?.prototype?.RenderSubMenu) || | ||
(m[prop]?.prototype?.RenderSubMenu && m[prop]?.prototype?.ShowSubMenu)) { | ||
@@ -29,0 +29,0 @@ return m[prop]; |
@@ -13,3 +13,3 @@ import { findModule } from '../webpack'; | ||
export const gamepadDialogClasses = findModule((mod) => typeof mod === 'object' && mod?.GamepadDialogContent?.includes('gamepaddialog')); | ||
export const quickAccessControlsClasses = findModule((mod) => typeof mod === 'object' && mod?.PanelSection?.includes('quickaccesscontrols')); | ||
export const quickAccessControlsClasses = findModule((mod) => typeof mod === 'object' && typeof mod?.PanelSection === 'string' && mod?.PanelSection?.includes('quickaccesscontrols')); | ||
export const updaterFieldClasses = findModule((mod) => typeof mod === 'object' && mod?.OOBEUpdateStatusContainer?.includes('updaterfield')); | ||
@@ -16,0 +16,0 @@ export const playSectionClasses = findModule((mod) => typeof mod === 'object' && mod?.Container?.includes('appdetailsplaysection')); |
{ | ||
"name": "decky-frontend-lib", | ||
"version": "3.20.6", | ||
"version": "3.20.7", | ||
"description": "A library for building decky plugins", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -462,3 +462,3 @@ import { findModule } from '../webpack'; | ||
export const quickAccessControlsClasses: QuickAccessControlsClasses = findModule( | ||
(mod) => typeof mod === 'object' && mod?.PanelSection?.includes('quickaccesscontrols'), | ||
(mod) => typeof mod === 'object' && typeof mod?.PanelSection === 'string' && mod?.PanelSection?.includes('quickaccesscontrols'), | ||
); | ||
@@ -465,0 +465,0 @@ export const updaterFieldClasses: UpdaterFieldClasses = findModule( |
Sorry, the diff of this file is not supported yet
217877