Add skip button to popup for segments and chapters

This commit is contained in:
Ajay
2021-12-24 20:35:36 -05:00
parent 798fd8b3f3
commit 05153a152d
5 changed files with 61 additions and 9 deletions

View File

@@ -198,13 +198,17 @@ function messageListener(request: Message, sender: unknown, sendResponse: (respo
}));
return true;
case "unskip":
unskipSponsorTime(sponsorTimes.find((segment) => segment.UUID === request.UUID));
break;
case "reskip":
reskipSponsorTime(sponsorTimes.find((segment) => segment.UUID === request.UUID));
break;
}
}
/**
* Called when the config is updated
*
* @param {String} changes
*/
function contentConfigUpdateListener(changes: StorageChangesObject) {
for (const key in changes) {