Show changelog only on installation

fixes #534
This commit is contained in:
sy-b authored and GitHub committed 2022-04-16 19:57:36 +05:30
1 parent 2e6ed5298b
commit b73aaddb59
1 file changed
+6 -3
+6 -3
View File
@@ -74,9 +74,12 @@ api.runtime.onMessage.addListener((request, sender, sendResponse) => {
}
});
api.runtime.onInstalled.addListener(() => {
api.tabs.create({url: api.runtime.getURL("/changelog/3/changelog_3.0.html")});
})
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.set({'newInstallation': false});
async function sendVote(videoId, vote) {
api.storage.sync.get(null, async (storageResult) => {