This commit is contained in:
tophf 2022-01-31 17:26:51 +03:00
parent ae2160afcd
commit 880319c74b

View File

@ -10,8 +10,10 @@ const router = {
return new URLSearchParams(location.search).get(key); return new URLSearchParams(location.search).get(key);
}, },
push(url, state = history.state) { push(url) {
history.pushState(Object.assign({buffer: router.buffer}, state), null, url); const state = history.state || {};
state.buffer = router.buffer;
history.pushState(state, null, url);
}, },
update(replace) { update(replace) {