cherry pick #541

clean up unnecessary commented code

Show changelog only on installation

fixes #534

add changelog button in popup
This commit is contained in:
sy-b authored and Yvon Cui committed 2022-04-19 00:07:16 -05:00
1 parent 2e6ed5298b
commit a99410ae13
3 files changed
+55 -52

No files matched your search

+6 -5
View File
@@ -9,8 +9,6 @@ let extConfig = {
coloredThumbs: false,
coloredBar: false,
colorTheme: "classic", // classic, accessible, neon
// coloredThumbs: false,
// coloredBar: false,
numberDisplayFormat: "compactShort", // compactShort, compactLong, standard
numberDisplayRoundDown: true, // locale 'de' shows exact numbers by default
};
@@ -74,9 +72,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) => {