refactor: codacy and some style changes etc

This commit is contained in:
David Ralph
2021-08-27 19:42:40 +01:00
parent abe70617d8
commit fcff3e44a6
21 changed files with 110 additions and 76 deletions

View File

@@ -26,9 +26,7 @@ export const COPYRIGHT_YEAR = '2018';
export const COPYRIGHT_LICENSE = 'BSD-3 License';
export const DONATE_USERNAME = 'davidjcralph'; // this only works if you use the same username for Patreon, GitHub and Ko-Fi
// Offline images
export const OFFLINE_IMAGES = 20;
// Version
export const BETA_VERSION = false;
export const VERSION = '5.3.3';

View File

@@ -23,7 +23,6 @@ export function offlineBackground() {
};
localStorage.setItem('currentBackground', JSON.stringify(object));
return object;
}
@@ -36,4 +35,4 @@ export function gradientStyleBuilder({ type, angle, gradient }) {
type: 'colour',
style: `background:${gradient[0]?.colour};${grad}`
};
};
}

View File

@@ -40,7 +40,7 @@ export function uninstall(type, name) {
}
}
localStorage.setItem('installed', JSON.stringify(installed));
};
}
export function install(type, input, sideload) {
switch (type) {

View File

@@ -165,4 +165,4 @@ export function moveSettings() {
Object.keys(settings).forEach((key) => {
localStorage.setItem(key, settings[key]);
});
};
}

View File

@@ -36,4 +36,4 @@ export function importSettings(e) {
toast(window.language.toasts.imported);
window.stats.postEvent('tab', 'Settings imported');
};
}