aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-08-17 21:45:30 -0400
committerAjay Ramachandran <[email protected]>2021-08-17 21:45:30 -0400
commit28096e1ba669f980b77684bcccef22755d59420d (patch)
tree83788d88469594c765859c3231bccc5e3652d197
parent56b74d6863fdf733cc0284ba5def3322d7d109db (diff)
downloadSponsorBlock-28096e1ba669f980b77684bcccef22755d59420d.tar.gz
SponsorBlock-28096e1ba669f980b77684bcccef22755d59420d.zip
Don't show multiple skip notices after skipping highlight
-rw-r--r--src/content.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts
index 96fb35a6..c1f1a9c7 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -572,7 +572,7 @@ function setupVideoListeners() {
utils.getCategoryActionType(segment.category) === CategoryActionType.POI &&
video.currentTime - segment.segment[0] > 0 &&
video.currentTime - segment.segment[0] < video.duration * 0.006); // Approximate size on preview bar
- if (currentPoiSegment) {
+ if (currentPoiSegment && !skipNotices.some((notice) => notice.segments.some((s) => s.UUID === currentPoiSegment.UUID))) {
skipToTime({
v: video,
skipTime: currentPoiSegment.segment,