From cdf6aa5e65588c8b7c457baf8e946614841f5a49 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 31 Aug 2020 10:57:20 -0400 Subject: [PATCH] Don't send notifications on YouTube Music --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 6cf3200e..3e173b1d 100644 --- a/src/content.ts +++ b/src/content.ts @@ -324,7 +324,7 @@ async function videoIDChange(id) { if (previousVideoID != null) { //get the sponsor times from storage let sponsorTimes = Config.config.segmentTimes.get(previousVideoID); - if (sponsorTimes != undefined && sponsorTimes.length > 0) { + if (sponsorTimes != undefined && sponsorTimes.length > 0 && new URL(document.URL).host !== "music.youtube.com") { //warn them that they have unsubmitted sponsor times chrome.runtime.sendMessage({ message: "alertPrevious",