0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 13:32:39 +00:00

Add default to New Page

This commit is contained in:
G.Ambatte
2023-07-19 20:39:33 +12:00
parent 64a361e06c
commit b869d086ea

View File

@@ -57,7 +57,7 @@ const NewPage = createClass({
const metaStorage = JSON.parse(localStorage.getItem(METAKEY));
SAVEKEY = `HOMEBREWERY-DEFAULT-SAVE-LOCATION-${global.account.username}`;
const saveStorage = localStorage.getItem(SAVEKEY);
const saveStorage = localStorage.getItem(SAVEKEY) || 'HOMEBREWERY';
brew.text = brewStorage ?? brew.text;
brew.style = styleStorage ?? brew.style;