decky-frontend-lib
Advanced tools
Comparing version 3.18.0 to 3.18.1
import { useEffect, useState } from 'react'; | ||
function getQuickAccessWindow() { | ||
try { | ||
const navTrees = FocusNavController?.m_ActiveContext?.m_rgGamepadNavigationTrees || FocusNavController?.m_rgGamepadNavigationTrees; | ||
const context = FocusNavController?.m_ActiveContext || FocusNavController?.m_LastActiveContext; | ||
const navTrees = context?.m_ActiveContext?.m_rgGamepadNavigationTrees || FocusNavController?.m_rgGamepadNavigationTrees; | ||
return navTrees?.find((tree) => tree?.id === "QuickAccess-NA")?.m_Root?.m_element?.ownerDocument.defaultView ?? null; | ||
@@ -6,0 +7,0 @@ } |
@@ -17,4 +17,5 @@ export * from './patcher'; | ||
// new (SP as popup) | ||
return FocusNavController.m_ActiveContext.m_rgGamepadNavigationTrees.find((x) => x.m_ID == 'root_1_').Root | ||
const context = FocusNavController.m_ActiveContext || FocusNavController.m_LastActiveContext; | ||
return context.m_rgGamepadNavigationTrees.find((x) => x.m_ID == 'root_1_').Root | ||
.Element.ownerDocument.defaultView; | ||
} |
{ | ||
"name": "decky-frontend-lib", | ||
"version": "3.18.0", | ||
"version": "3.18.1", | ||
"description": "A library for building decky plugins", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -19,4 +19,5 @@ export * from './patcher'; | ||
// new (SP as popup) | ||
return FocusNavController.m_ActiveContext.m_rgGamepadNavigationTrees.find((x: any) => x.m_ID == 'root_1_').Root | ||
const context = FocusNavController.m_ActiveContext || FocusNavController.m_LastActiveContext; | ||
return context.m_rgGamepadNavigationTrees.find((x: any) => x.m_ID == 'root_1_').Root | ||
.Element.ownerDocument.defaultView; | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191203
4573