Fix Stream menu's grip handle

This commit is contained in:
redphx 2024-10-06 20:20:11 +07:00
parent 203346c0a1
commit 5b80170c8b

View File

@ -145,6 +145,9 @@ export class StreamUiHandler {
// Grip handle // Grip handle
const $gripHandle = document.querySelector('#StreamHud button[class^=GripHandle]') as HTMLElement; const $gripHandle = document.querySelector('#StreamHud button[class^=GripHandle]') as HTMLElement;
if ($gripHandle && $gripHandle.ariaExpanded === 'true') { if ($gripHandle && $gripHandle.ariaExpanded === 'true') {
$gripHandle.dispatchEvent(new PointerEvent('pointerdown'));
$gripHandle.click();
$gripHandle.dispatchEvent(new PointerEvent('pointerdown'));
$gripHandle.click(); $gripHandle.click();
} }
} }