mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 13:37:04 +03:00
notifications
This commit is contained in:
10
content.js
10
content.js
@@ -194,12 +194,10 @@ function videoIDChange(id) {
|
|||||||
|
|
||||||
if (sponsorTimes != undefined && sponsorTimes.length > 0) {
|
if (sponsorTimes != undefined && sponsorTimes.length > 0) {
|
||||||
//warn them that they have unsubmitted sponsor times
|
//warn them that they have unsubmitted sponsor times
|
||||||
chrome.notifications.create("stillThere" + Math.random(), {
|
chrome.runtime.sendMessage({
|
||||||
type: "basic",
|
message: "alertPrevious",
|
||||||
title: "Do you want to submit the sponsor times for watch?v=" + previousVideoID + "?",
|
previousVideoID: previousVideoID
|
||||||
message: "You seem to have left some sponsor times unsubmitted. Go back to that page to submit them (they are not deleted).",
|
})
|
||||||
iconUrl: "./icons/LogoSponsorBlocker256px.png"
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//set the previous video id to the currentID
|
//set the previous video id to the currentID
|
||||||
|
|||||||
Reference in New Issue
Block a user