summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkPageWindow.vue
diff options
context:
space:
mode:
authorokayurisotto <okayurisotto@proton.me>2023-07-14 10:45:01 +0900
committerGitHub <noreply@github.com>2023-07-14 10:45:01 +0900
commit2b6dbd4fcbec380d65b0c318932d9eeb3fcb3f7b (patch)
tree125b6f724450c37bd1c025d5b3e09c50dc2b20c9 /packages/frontend/src/components/MkPageWindow.vue
parentrefactor: `substr` -> `substring` (#11273) (diff)
downloadmisskey-2b6dbd4fcbec380d65b0c318932d9eeb3fcb3f7b.tar.gz
misskey-2b6dbd4fcbec380d65b0c318932d9eeb3fcb3f7b.tar.bz2
misskey-2b6dbd4fcbec380d65b0c318932d9eeb3fcb3f7b.zip
refactor: 可読性のため一部で`Array.prototype.at`を使うように (#11274)
* refactor: `Array.prototype.at`を使うように * fixup! refactor: `Array.prototype.at`を使うように
Diffstat (limited to 'packages/frontend/src/components/MkPageWindow.vue')
-rw-r--r--packages/frontend/src/components/MkPageWindow.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkPageWindow.vue b/packages/frontend/src/components/MkPageWindow.vue
index 6318a9fd70..6e35ad4241 100644
--- a/packages/frontend/src/components/MkPageWindow.vue
+++ b/packages/frontend/src/components/MkPageWindow.vue
@@ -120,7 +120,7 @@ const contextmenu = $computed(() => ([{
function back() {
history.pop();
- router.replace(history[history.length - 1].path, history[history.length - 1].key);
+ router.replace(history.at(-1)!.path, history.at(-1)!.key);
}
function reload() {