From f41d668e75552adccbcdbc68ec9dd0f0998c14c7 Mon Sep 17 00:00:00 2001 From: Anton Bershanskiy <45960703+bershanskiy@users.noreply.github.com> Date: Thu, 16 Jun 2022 23:00:22 +0300 Subject: [PATCH] Handle onInstalled.reason "chrome_update" --- Extensions/combined/ryd.background.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Extensions/combined/ryd.background.js b/Extensions/combined/ryd.background.js index 75f22ae..48f57d0 100644 --- a/Extensions/combined/ryd.background.js +++ b/Extensions/combined/ryd.background.js @@ -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" )