mirror of
https://github.com/mue/mue.git
synced 2026-06-12 03:28:46 +02:00
refactor: codacy and some style changes etc
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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}`
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ export function uninstall(type, name) {
|
||||
}
|
||||
}
|
||||
localStorage.setItem('installed', JSON.stringify(installed));
|
||||
};
|
||||
}
|
||||
|
||||
export function install(type, input, sideload) {
|
||||
switch (type) {
|
||||
|
||||
@@ -165,4 +165,4 @@ export function moveSettings() {
|
||||
Object.keys(settings).forEach((key) => {
|
||||
localStorage.setItem(key, settings[key]);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
@@ -36,4 +36,4 @@ export function importSettings(e) {
|
||||
|
||||
toast(window.language.toasts.imported);
|
||||
window.stats.postEvent('tab', 'Settings imported');
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user