mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
fix: reduce unchecked type-cast
This commit is contained in:
@ -5,6 +5,6 @@ export default () => {
|
||||
|| window.getComputedStyle(compactSidebar).display === 'none';
|
||||
|
||||
if (isCompactSidebarDisabled) {
|
||||
(document.querySelector('#button') as HTMLButtonElement)?.click();
|
||||
document.querySelector<HTMLButtonElement>('#button')?.click();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user