Merge pull request #649 from bershanskiy/patch-1

Handle onInstalled.reason "chrome_update"
This commit is contained in:
Dmitrii Selivanov authored and GitHub committed 2022-07-19 23:57:20 +02:00
commit 08e3f7beb6
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"
)