aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-01-14 14:57:46 -0500
committerAjay <[email protected]>2022-01-14 14:57:46 -0500
commitcf01679f1676c7901dcb0f9eff4b4c467bed641e (patch)
tree5f3b7062933c7a54d2914aa26c420d8cf732b1c7 /src
parent16f4ab53b6586985eb852a8e00641ec3068b18a0 (diff)
downloadSponsorBlock-cf01679f1676c7901dcb0f9eff4b4c467bed641e.tar.gz
SponsorBlock-cf01679f1676c7901dcb0f9eff4b4c467bed641e.zip
null check for skip notice
Diffstat (limited to 'src')
-rw-r--r--src/content.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts
index 5d61ffab..71a38dd1 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -265,7 +265,7 @@ function resetValues() {
isAdPlaying = false;
for (let i = 0; i < skipNotices.length; i++) {
- skipNotices.pop().close();
+ skipNotices.pop()?.close();
}
skipButtonControlBar?.disable();