From 61c3757d1ffc6aae4be64ba914d8e8410156bd4d Mon Sep 17 00:00:00 2001 From: Anarios Date: Thu, 28 Jul 2022 22:56:32 +0200 Subject: 3.0.0.3 --- Extensions/combined/manifest-chrome.json | 4 ++-- Extensions/combined/manifest-firefox.json | 15 +++++++-------- Extensions/combined/ryd.background.js | 11 ++++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Extensions/combined/manifest-chrome.json b/Extensions/combined/manifest-chrome.json index d881a75..fc9e051 100644 --- a/Extensions/combined/manifest-chrome.json +++ b/Extensions/combined/manifest-chrome.json @@ -1,8 +1,8 @@ { - "name": "__MSG_extensionName__", + "name": "__MSG_extensionNameBeta__", "description": "__MSG_extensionDesc__", "default_locale": "en", - "version": "3.0.0.1", + "version": "3.0.0.3", "manifest_version": 3, "background": { "service_worker": "ryd.background.js" diff --git a/Extensions/combined/manifest-firefox.json b/Extensions/combined/manifest-firefox.json index f304c6a..4f7ba04 100644 --- a/Extensions/combined/manifest-firefox.json +++ b/Extensions/combined/manifest-firefox.json @@ -2,7 +2,7 @@ "name": "__MSG_extensionName__", "description": "__MSG_extensionDesc__", "default_locale": "en", - "version": "3.0.0.0", + "version": "3.0.0.3", "manifest_version": 2, "background": { "scripts": ["ryd.background.js"] @@ -28,13 +28,12 @@ "css": ["content-style.css"], "js": ["ryd.content-script.js"] } - ] + ], // uncomment this section for local storage to work in firefox locally - , - "browser_specific_settings": { - "gecko": { - "id": "addon@example.com", - "strict_min_version": "42.0" - } + "browser_specific_settings": { + "gecko": { + "id": "addon@example.com", + "strict_min_version": "42.0" } + } } 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) { -- cgit v1.2.3