mirror of
https://github.com/mue/mue.git
synced 2026-07-23 16:57:25 +02:00
fix: clock hot reload
This commit is contained in:
@@ -25,7 +25,7 @@ export function setDefaultSettings(reset) {
|
||||
|
||||
// Finally we set this to true so it doesn't run the function on every load
|
||||
localStorage.setItem('firstRun', true);
|
||||
}
|
||||
};
|
||||
|
||||
export function loadSettings(hotreload) {
|
||||
document.getElementById('widgets').style.zoom = localStorage.getItem('widgetzoom') + '%';
|
||||
@@ -121,7 +121,7 @@ export function loadSettings(hotreload) {
|
||||
██ Feedback: hello@muetab.com ██
|
||||
█████████████████████████████████████████████████████████████
|
||||
`);
|
||||
}
|
||||
};
|
||||
|
||||
// in a nutshell, this function saves all of the current settings, resets them, sets the defaults and then overrides
|
||||
// the new settings with the old saved messages where they exist
|
||||
@@ -141,4 +141,4 @@ export function moveSettings() {
|
||||
Object.keys(settings).forEach((key) => {
|
||||
localStorage.setItem(key, settings[key]);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user