mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 05:00:24 +02:00
VR "+" menu grid: a popup whose window throws no longer stops the scan
p.window was read outside the guard, so an exception there ended the 1 s scan for the remaining popups (pinned-desktop already guards it).
This commit is contained in:
1 parent
9cd22f047d
commit
4538ecea06
1 file changed
+2
-2
@@ -23,7 +23,7 @@
|
|||||||
// unpatch.js (or a new VERSION/options) calls __sfuiLauncherGrid.stop().
|
// unpatch.js (or a new VERSION/options) calls __sfuiLauncherGrid.stop().
|
||||||
((find, sigs, opts) => {
|
((find, sigs, opts) => {
|
||||||
const NAME = 'launcher-menu-grid';
|
const NAME = 'launcher-menu-grid';
|
||||||
const VERSION = 7;
|
const VERSION = 8;
|
||||||
const COLS = opts.columns;
|
const COLS = opts.columns;
|
||||||
const ROWS = opts.maxRows ?? null;
|
const ROWS = opts.maxRows ?? null;
|
||||||
if (!(Number.isInteger(COLS) && COLS >= 1) || !(ROWS === null || (Number.isInteger(ROWS) && ROWS >= 1)))
|
if (!(Number.isInteger(COLS) && COLS >= 1) || !(ROWS === null || (Number.isInteger(ROWS) && ROWS >= 1)))
|
||||||
@@ -276,7 +276,7 @@ ${PINNED} > [role=button] * { flex-grow: 0 !important; text-align: center !impor
|
|||||||
const scan = () => {
|
const scan = () => {
|
||||||
for (const [d, o] of docs) if (!d.defaultView || d.defaultView.closed) detach(d, o);
|
for (const [d, o] of docs) if (!d.defaultView || d.defaultView.closed) detach(d, o);
|
||||||
for (const p of g_PopupManager.GetPopups())
|
for (const p of g_PopupManager.GetPopups())
|
||||||
if (/barpopup/.test(p.m_strName ?? '')) guard(attach)(p.window?.document);
|
if (/barpopup/.test(p.m_strName ?? '')) guard(() => attach(p.window?.document))();
|
||||||
};
|
};
|
||||||
|
|
||||||
const timer = setInterval(scan, 1000);
|
const timer = setInterval(scan, 1000);
|
||||||
|
|||||||
Reference in new issue
Block a user