From 1f53cfc52cadb912f44bb60fd5ebedf1c2f5c4cc Mon Sep 17 00:00:00 2001 From: nobody Date: Tue, 14 Jul 2020 17:54:25 +0200 Subject: [PATCH] Code improved --- core/main.js | 13 ++----------- core/mappings.js | 1 - 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/core/main.js b/core/main.js index 3999f02f..9bce84ba 100644 --- a/core/main.js +++ b/core/main.js @@ -69,11 +69,6 @@ main._initializeSettings = function () { main._showReleaseNotes = function (details) { - let location, updateAdBlockerRules, previousVersion; - - location = chrome.extension.getURL('pages/welcome/welcome.html'); - updateAdBlockerRules = chrome.extension.getURL('pages/updates/updates.html'); - if (details.reason === chrome.runtime.OnInstalledReason.INSTALL) { chrome.storage.sync.set({ @@ -82,10 +77,6 @@ main._showReleaseNotes = function (details) { previousVersion = details.previousVersion; - if (previousVersion && previousVersion.charAt(0) === '2') { - return; // Do not show release notes after minor updates. - } - if (details.temporary !== true) { chrome.storage.sync.get([Setting.HIDE_RELEASE_NOTES], function (items) { @@ -93,7 +84,7 @@ main._showReleaseNotes = function (details) { if (items.hideReleaseNotes !== true) { chrome.tabs.create({ - 'url': location, + 'url': chrome.extension.getURL('pages/welcome/welcome.html'), 'active': false }); } @@ -117,7 +108,7 @@ main._showReleaseNotes = function (details) { }, function() { if (!items.hideReleaseNotes) { chrome.tabs.create({ - 'url': updateAdBlockerRules, + 'url': chrome.extension.getURL('pages/updates/updates.html'), 'active': false }); } diff --git a/core/mappings.js b/core/mappings.js index 7230c1f1..d806be21 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -383,7 +383,6 @@ var mappings = { 'dojo/{version}/dojo.': resources.dojo, 'emberjs/{version}/ember.': resources.ember, 'jquery/{version}/jquery.': resources.jQuery, - 'npm/jquery@{version}/dist/jquery.': resources.jQuery, 'jquery.ui/{version}/jquery-ui.js': resources.jQueryUI, 'jquery.ui/{version}/jquery-ui.min.js': resources.jQueryUI, 'jquery.slick/{version}/slick.css': resources.slickCarouselCSS,