mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-02 12:52:38 +00:00
use replaceState instead
This commit is contained in:
@@ -85,7 +85,7 @@ const NewPage = createClass({
|
|||||||
localStorage.setItem(STYLEKEY, brew.style);
|
localStorage.setItem(STYLEKEY, brew.style);
|
||||||
localStorage.setItem(METAKEY, JSON.stringify({ 'renderer': brew.renderer, 'theme': brew.theme, 'lang': brew.lang }));
|
localStorage.setItem(METAKEY, JSON.stringify({ 'renderer': brew.renderer, 'theme': brew.theme, 'lang': brew.lang }));
|
||||||
if(window.location.pathname != '/new') {
|
if(window.location.pathname != '/new') {
|
||||||
window.location.pathname = '/new';
|
window.history.replaceState({}, window.location.title, '/new/');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
componentWillUnmount : function() {
|
componentWillUnmount : function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user