mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 23:16:58 +00:00
Merge branch 'master' into UnifyNewHomeEdit-Structure&Naming
This commit is contained in:
commit
ba23763294
5 files changed
+14
-12
No files matched your search
@@ -30,7 +30,7 @@ const BREWKEY = 'homebrewery-new';
|
||||
const STYLEKEY = 'homebrewery-new-style';
|
||||
const SNIPKEY = 'homebrewery-new-snippets';
|
||||
const METAKEY = 'homebrewery-new-meta';
|
||||
const SAVEKEY = `HOMEBREWERY-DEFAULT-SAVE-LOCATION-${global.account?.username || ''}`;
|
||||
const SAVEKEYPREFIX = 'HOMEBREWERY-DEFAULT-SAVE-LOCATION-';
|
||||
|
||||
const useLocalStorage = true;
|
||||
|
||||
@@ -87,6 +87,7 @@ const NewPage = (props) => {
|
||||
brew.lang = metaStorage?.lang ?? brew.lang;
|
||||
}
|
||||
|
||||
const SAVEKEY = `${SAVEKEYPREFIX}${global.account?.username}`;
|
||||
const saveStorage = localStorage.getItem(SAVEKEY) || 'HOMEBREWERY';
|
||||
|
||||
setCurrentBrew(brew);
|
||||
|
||||
Reference in new issue
Block a user