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:
11
core/main.js
11
core/main.js
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user