aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-13 18:51:25 +0200
committerVendicated <vendicated@riseup.net>2022-10-13 18:51:25 +0200
commit5fe04c5882e67cc4ac0ec458ee225b433c22590c (patch)
tree4b6572bb7316770ca193e714687a2f48135cf2e0 /src/plugins
parenta73e10fc779e8480c4c3a4ceec3b74d0d63d0edc (diff)
downloadVencord-5fe04c5882e67cc4ac0ec458ee225b433c22590c.tar.gz
Vencord-5fe04c5882e67cc4ac0ec458ee225b433c22590c.tar.bz2
Vencord-5fe04c5882e67cc4ac0ec458ee225b433c22590c.zip
turns out electron13 has no array.at()
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/interactionKeybinds.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/interactionKeybinds.ts b/src/plugins/interactionKeybinds.ts
index 9c187b1..3f6c7b4 100644
--- a/src/plugins/interactionKeybinds.ts
+++ b/src/plugins/interactionKeybinds.ts
@@ -89,7 +89,7 @@ function getNextMessage(isUp: boolean, isReply: boolean) {
else
editIdx = i = mutate(editIdx);
- return i === - 1 ? undefined : messages.at(-i - 1);
+ return i === - 1 ? undefined : messages[messages.length - i - 1];
}
// handle next/prev reply