mirror of
https://github.com/SrIzan10/return-youtube-dislike.git
synced 2026-05-01 10:55:27 +00:00
Fixed annoying update popup bug
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user