mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 05:27:03 +03:00
Added warning if you leave a page before submitting your sponsor times.
This commit is contained in:
4
popup.js
4
popup.js
@@ -35,12 +35,14 @@ function loadTabData(tabs) {
|
||||
let videoTimeKey = "videoTimes" + currentVideoID;
|
||||
chrome.storage.local.get([videoTimeKey], function(result) {
|
||||
videoTimes = result[videoTimeKey];
|
||||
if (videoTimes != undefined && result.videoTimes != []) {
|
||||
if (videoTimes != undefined && videoTimes != []) {
|
||||
if (videoTimes[videoTimes.length - 1]!= undefined && videoTimes[videoTimes.length - 1].length < 2) {
|
||||
startTimeChosen = true;
|
||||
}
|
||||
|
||||
displayVideoTimes();
|
||||
} else {
|
||||
videoTimes = []
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user