mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/paging: avoid redrawing header navigation
This commit is contained in:
@ -137,8 +137,8 @@ class Router {
|
||||
}
|
||||
|
||||
show(path, state, push) {
|
||||
const oldPath = this.ctx ? this.ctx.path : ctx.path;
|
||||
const ctx = new Context(path, state);
|
||||
const oldPath = this.ctx ? this.ctx.path : ctx.path;
|
||||
this.dispatch(ctx, () => {
|
||||
if (ctx.path !== oldPath && push !== false) {
|
||||
ctx.pushState();
|
||||
|
Reference in New Issue
Block a user