1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-01-03 13:49:13 +01:00

Code improved

This commit is contained in:
nobody 2020-07-14 17:54:25 +02:00
parent 91add79d61
commit 1f53cfc52c
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 2 additions and 12 deletions

View File

@ -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
});
}

View File

@ -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,