mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Only open release notes in case of new CDNs (#132)
This commit is contained in:
@ -55,7 +55,7 @@ main._showReleaseNotes = function (details) {
|
||||
|
||||
if (details.reason === chrome.runtime.OnInstalledReason.INSTALL) {
|
||||
storageManager.type.set({
|
||||
[Setting.LAST_MAPPING_UPDATE]: lastMappingUpdate
|
||||
[Setting.LAST_MAPPING_UPDATE]: mappings.lastMappingUpdate
|
||||
}, function() {
|
||||
if (details.temporary !== true) {
|
||||
|
||||
@ -73,12 +73,12 @@ main._showReleaseNotes = function (details) {
|
||||
});
|
||||
} else if (details.reason === chrome.runtime.OnInstalledReason.UPDATE) {
|
||||
storageManager.type.get([Setting.LAST_MAPPING_UPDATE, Setting.HIDE_RELEASE_NOTES], function (items) {
|
||||
let mappingUpdate = items.lastMappingUpdate !== lastMappingUpdate;
|
||||
let mappingUpdate = items.lastMappingUpdate !== mappings.lastMappingUpdate;
|
||||
|
||||
if (mappingUpdate || !items.hideReleaseNotes) {
|
||||
// Updated mappings.js
|
||||
storageManager.type.set({
|
||||
[Setting.LAST_MAPPING_UPDATE]: lastMappingUpdate
|
||||
[Setting.LAST_MAPPING_UPDATE]: mappings.lastMappingUpdate
|
||||
}, function() {
|
||||
if (!items.hideReleaseNotes) {
|
||||
chrome.tabs.create({
|
||||
|
Reference in New Issue
Block a user