Handle onInstalled.reason "chrome_update"

This commit is contained in:
Anton Bershanskiy authored and GitHub committed 2022-06-16 23:00:22 +03:00
1 parent 16b1c2ccf0
commit f41d668e75
1 file changed
+2
+2
View File
@@ -77,6 +77,8 @@ api.runtime.onInstalled.addListener((details) => {
if (
// No need to show changelog if its was a browser update (and not extension update)
details.reason === "browser_update" ||
// Chromium (e.g., Google Chrome Cannary) uses this name instead of the one above for some reason
details.reason === "chrome_update" ||
// No need to show changelog if developer just reloaded the extension
details.reason === "update"
)