From 19a1a5efda556c8ef6d0a187cc17a7ab31c426fe Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Sun, 11 Aug 2019 21:20:10 +0100 Subject: [PATCH] Added alertPrevious message --- background.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index c08ad16b..21a605d7 100644 --- a/background.js +++ b/background.js @@ -29,7 +29,14 @@ chrome.runtime.onMessage.addListener(function (request, sender, callback) { //this allows the callback to be called later return true; - } + } else if (request.message == "alertPrevious") { + chrome.notifications.create("stillThere" + Math.random(), { + type: "basic", + title: "Do you want to submit the sponsor times for video id " + request.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" + }); + } }); //add help page on install