web: data-driven switcher & save mode switcher
also: - disabled ssr to enable localstorage - removed the workaround for hover, as it looks bad
This commit is contained in:
@@ -18,7 +18,7 @@ const writeToStorage = (settings: CobaltSettings) => {
|
||||
const loadFromStorage = () => {
|
||||
const settings = localStorage.getItem('settings');
|
||||
if (!settings) {
|
||||
return writeToStorage(defaultSettings);
|
||||
return defaultSettings;
|
||||
}
|
||||
|
||||
return JSON.parse(settings) as CobaltSettings;
|
||||
|
||||
Reference in New Issue
Block a user