Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Anarios/return-youtube-dislike.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Extensions/combined/ryd.background.js')
-rw-r--r--Extensions/combined/ryd.background.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/Extensions/combined/ryd.background.js b/Extensions/combined/ryd.background.js
index edc5b6f..cc2817c 100644
--- a/Extensions/combined/ryd.background.js
+++ b/Extensions/combined/ryd.background.js
@@ -80,11 +80,13 @@ api.runtime.onInstalled.addListener((details) => {
details.reason === "chrome_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"),
- });
+ } else if (details.reason == "install") {
+ api.tabs.create({
+ url: api.runtime.getURL("/changelog/3/changelog_3.0.html"),
+ });
+ }
});
// api.storage.sync.get(['lastShowChangelogVersion'], (details) => {
@@ -370,7 +372,6 @@ function initializeColoredThumbs() {
});
}
-
function initializeColoredBar() {
api.storage.sync.get(["coloredBar"], (res) => {
if (res.coloredBar === undefined) {