fix popstate
This commit is contained in:
parent
79ca6d793c
commit
88bbf4622c
File diff suppressed because one or more lines are too long
|
|
@ -93,18 +93,19 @@ export const defineWindow = async (awaitServerUrl = true) => {
|
||||||
url: location.href,
|
url: location.href,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (w.prasiContext.popState) {
|
||||||
|
w.prasiContext.popState();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (w.preventPopRender) {
|
if (w.preventPopRender) {
|
||||||
w.preventPopRender = false;
|
w.preventPopRender = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (w.prasiContext && w.prasiContext.render) {
|
if (w.prasiContext && w.prasiContext.render) {
|
||||||
w.pathname = location.pathname;
|
w.pathname = location.pathname;
|
||||||
if (w.prasiContext.overrideRender) {
|
|
||||||
w.prasiContext.overrideRender(w.prasiContext.render);
|
|
||||||
} else {
|
|
||||||
w.prasiContext.render();
|
w.prasiContext.render();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue