sendVideoIds removed, sponsor links updated

This commit is contained in:
Dmitrii Selivanov committed 2022-04-26 23:07:05 +02:00
1 parent bdc28cad33
commit a4806c1f47
9 files changed
+62 -79

No files matched your search

+10 -10
View File
@@ -73,16 +73,16 @@ api.runtime.onMessage.addListener((request, sender, sendResponse) => {
}
});
api.storage.sync.get(['lastShowChangelogVersion'], (details) => {
if (extConfig.showUpdatePopup === true &&
details.lastShowChangelogVersion !== chrome.runtime.getManifest().version
) {
// keep it inside get to avoid race condition
api.storage.sync.set({'lastShowChangelogVersion ': chrome.runtime.getManifest().version});
// wait until async get runs & don't steal tab focus
api.tabs.create({url: api.runtime.getURL("/changelog/3/changelog_3.0.html"), active: false});
}
});
// api.storage.sync.get(['lastShowChangelogVersion'], (details) => {
// if (extConfig.showUpdatePopup === true &&
// details.lastShowChangelogVersion !== chrome.runtime.getManifest().version
// ) {
// // keep it inside get to avoid race condition
// api.storage.sync.set({'lastShowChangelogVersion ': chrome.runtime.getManifest().version});
// // wait until async get runs & don't steal tab focus
// api.tabs.create({url: api.runtime.getURL("/changelog/3/changelog_3.0.html"), active: false});
// }
// });
async function sendVote(videoId, vote) {
api.storage.sync.get(null, async (storageResult) => {