mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 02:17:53 +01:00
Merge branch 'main' into extOptionFormatLikes
This commit is contained in:
24 files changed
+352
-52
No files matched your search
@@ -73,12 +73,16 @@ api.runtime.onMessage.addListener((request, sender, sendResponse) => {
|
||||
}
|
||||
});
|
||||
|
||||
api.storage.sync.get(['newInstallation'], (result) => {
|
||||
if (result.newInstallation !== false) {
|
||||
api.tabs.create({url: api.runtime.getURL("/changelog/3/changelog_3.0.html")});
|
||||
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.set({'newInstallation': false});
|
||||
|
||||
async function sendVote(videoId, vote) {
|
||||
api.storage.sync.get(null, async (storageResult) => {
|
||||
|
||||
Reference in new issue
Block a user