Ver código fonte

Merge pull request #649 from bershanskiy/patch-1

Handle onInstalled.reason "chrome_update"
Dmitrii Selivanov 2 anos atrás
pai
commit
08e3f7beb6
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      Extensions/combined/ryd.background.js

+ 2 - 0
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"
   )