mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 14:56:16 +02:00
enhance(frontend): typed nirax (#16309)
* enhance(frontend): typed nirax * migrate router.replace * fix
This commit is contained in:
@@ -20,7 +20,7 @@ export function createRouter(fullPath: string): Router {
|
||||
export const mainRouter = createRouter(window.location.pathname + window.location.search + window.location.hash);
|
||||
|
||||
window.addEventListener('popstate', (event) => {
|
||||
mainRouter.replace(window.location.pathname + window.location.search + window.location.hash);
|
||||
mainRouter.replaceByPath(window.location.pathname + window.location.search + window.location.hash);
|
||||
});
|
||||
|
||||
mainRouter.addListener('push', ctx => {
|
||||
|
||||
Reference in New Issue
Block a user