aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2019-08-19 22:26:49 -0400
committerAjay Ramachandran <[email protected]>2019-08-19 22:26:49 -0400
commit85f9bb1d3427814a1d66735c9effe4da1a268c45 (patch)
treeeab6ae9b8e5afd6ebd5c6786743612aef4beb133
parent7adef119d3819dd33f8083e200a3628492e579a8 (diff)
downloadSponsorBlock-85f9bb1d3427814a1d66735c9effe4da1a268c45.tar.gz
SponsorBlock-85f9bb1d3427814a1d66735c9effe4da1a268c45.zip
Removed setInterval when removing the notice.
-rw-r--r--utils/skipNotice.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/skipNotice.js b/utils/skipNotice.js
index e57a56e2..511baf4a 100644
--- a/utils/skipNotice.js
+++ b/utils/skipNotice.js
@@ -359,6 +359,9 @@ class SkipNotice {
if (notice != null) {
notice.remove();
}
+
+ //remove setInterval
+ if (this.countdownInterval != -1) clearInterval(this.countdownInterval);
}
} \ No newline at end of file