mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix: reduce unchecked type-cast
This commit is contained in:
@ -104,7 +104,7 @@ const syncVideoWithTransitionAudio = () => {
|
||||
video.removeEventListener('timeupdate', transitionBeforeEnd);
|
||||
|
||||
// Go to next video - XXX: does not support "repeat 1" mode
|
||||
(document.querySelector('.next-button') as HTMLButtonElement).click();
|
||||
document.querySelector<HTMLButtonElement>('.next-button')?.click();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user