diff options
author | Dmitrii Selivanov <selivano.d@gmail.com> | 2022-05-13 22:17:00 +0300 |
---|---|---|
committer | Dmitrii Selivanov <selivano.d@gmail.com> | 2022-05-13 22:17:00 +0300 |
commit | ebabeaef8857fb8f33b034f89cca205a09de12f2 (patch) | |
tree | 9145f82f3f3925301160f9291be6dd817deb6fee | |
parent | e4a52fe4de26fdae851cb6446fedd53c525323e8 (diff) |
Fixed annoying update popup bugdevelopment
-rw-r--r-- | Extensions/combined/ryd.background.js | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Extensions/combined/ryd.background.js b/Extensions/combined/ryd.background.js index 75f22ae..c9e5760 100644 --- a/Extensions/combined/ryd.background.js +++ b/Extensions/combined/ryd.background.js @@ -74,16 +74,12 @@ api.runtime.onMessage.addListener((request, sender, sendResponse) => { }); 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" || - // No need to show changelog if developer just reloaded the extension - details.reason === "update" - ) - return; - api.tabs.create({ - url: api.runtime.getURL("/changelog/3/changelog_3.0.html"), - }); + // Only show on first install + if (details.reason === "install") { + api.tabs.create({ + url: api.runtime.getURL("/changelog/3/changelog_3.0.html"), + }); + } }); // api.storage.sync.get(['lastShowChangelogVersion'], (details) => { |