Only show skip keybind hint on one notice

This commit is contained in:
Ajay Ramachandran
2021-05-11 00:18:40 -04:00
parent ef7e5d1312
commit 2aaee2c1c4
3 changed files with 15 additions and 3 deletions

View File

@@ -1003,6 +1003,7 @@ function skipToTime(v: HTMLVideoElement, skipTime: number[], skippingSegments: S
if (openNotice) {
//send out the message saying that a sponsor message was skipped
if (!Config.config.dontShowNotice || !autoSkip) {
skipNotices.forEach((notice) => notice.setShowKeybindHint(false));
skipNotices.push(new SkipNotice(skippingSegments, autoSkip, skipNoticeContentContainer));
}
}