mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-21 23:16:54 +00:00
Remove page leave warning when saving on New
This commit is contained in:
1 parent
c3a2d0641a
commit
4a884233c1
1 file changed
+1
@@ -197,6 +197,7 @@ const NewPage = (props)=>{
|
||||
localStorage.removeItem(BREWKEY);
|
||||
localStorage.removeItem(STYLEKEY);
|
||||
localStorage.removeItem(METAKEY);
|
||||
window.onbeforeunload = null;
|
||||
window.location = `/edit/${savedBrew.editId}`;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user