1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Just code style (JS)

This commit is contained in:
nobody
2021-02-17 07:01:08 +01:00
parent 25a8a0499c
commit db398fadec
26 changed files with 572 additions and 226 deletions

View File

@ -18,12 +18,14 @@
'use strict';
/**
* Main
*/
var main = {};
/**
* Private Methods
*/
@ -80,7 +82,7 @@ main._showReleaseNotes = function (details) {
if (details.reason === chrome.runtime.OnInstalledReason.INSTALL) {
storageManager.type.set({
[Setting.LAST_MAPPING_UPDATE]: mappings.lastMappingUpdate
}, function() {
}, function () {
if (details.temporary !== true) {
chrome.tabs.create({
'url': chrome.extension.getURL('pages/welcome/welcome.html'),
@ -107,19 +109,20 @@ main._showReleaseNotes = function (details) {
storageManager.type.set(items);
}
if ( (mappingUpdate && items.updateNotification == 1) || items.updateNotification == 2 ) {
if ((mappingUpdate && items.updateNotification === 1) || items.updateNotification === 2) {
chrome.tabs.create({
'url': chrome.extension.getURL('pages/updates/updates.html?mappingupdate=' + mappingUpdate),
'url': chrome.extension.getURL(`pages/updates/updates.html?mappingupdate=${mappingUpdate}`),
'active': false
});
} else {
// No mappings.js update
return;
}
});
}
};
/**
* Initializations
*/