mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +03:00
Don't send notifications on YouTube Music
This commit is contained in:
@@ -324,7 +324,7 @@ async function videoIDChange(id) {
|
|||||||
if (previousVideoID != null) {
|
if (previousVideoID != null) {
|
||||||
//get the sponsor times from storage
|
//get the sponsor times from storage
|
||||||
let sponsorTimes = Config.config.segmentTimes.get(previousVideoID);
|
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
|
//warn them that they have unsubmitted sponsor times
|
||||||
chrome.runtime.sendMessage({
|
chrome.runtime.sendMessage({
|
||||||
message: "alertPrevious",
|
message: "alertPrevious",
|
||||||
|
|||||||
Reference in New Issue
Block a user