From f254a99d6f5cf1bfc90864154a6b565cbff0824f Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Sun, 11 Aug 2019 21:21:04 +0100 Subject: [PATCH] notifications --- content.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/content.js b/content.js index e14a5d56..75378e32 100644 --- a/content.js +++ b/content.js @@ -194,12 +194,10 @@ function videoIDChange(id) { if (sponsorTimes != undefined && sponsorTimes.length > 0) { //warn them that they have unsubmitted sponsor times - chrome.notifications.create("stillThere" + Math.random(), { - type: "basic", - title: "Do you want to submit the sponsor times for watch?v=" + 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" - }); + chrome.runtime.sendMessage({ + message: "alertPrevious", + previousVideoID: previousVideoID + }) } //set the previous video id to the currentID