From bffc208fb4ec12f9617fd1cc6f3395b18cdddb2f Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 8 Mar 2026 14:31:59 -0700 Subject: [PATCH] Add const to modifiers, identifier. --- frontends/bringrss_flask/static/js/hotkeys.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/bringrss_flask/static/js/hotkeys.js b/frontends/bringrss_flask/static/js/hotkeys.js index 3882cdf..7aa75cd 100644 --- a/frontends/bringrss_flask/static/js/hotkeys.js +++ b/frontends/bringrss_flask/static/js/hotkeys.js @@ -38,7 +38,7 @@ function register_hotkey(hotkey, action, description) } const key = hotkey.pop(); - modifiers = hotkey.map(word => word.toLocaleLowerCase()); + const modifiers = hotkey.map(word => word.toLocaleLowerCase()); const ctrlKey = modifiers.includes("control") || modifiers.includes("ctrl"); const shiftKey = modifiers.includes("shift"); const altKey = modifiers.includes("alt"); @@ -96,7 +96,7 @@ function hotkeys_listener(event) return; } - identifier = hotkeys.hotkey_identifier(event.key, event.ctrlKey, event.shiftKey, event.altKey); + const identifier = hotkeys.hotkey_identifier(event.key, event.ctrlKey, event.shiftKey, event.altKey); //console.log(identifier); if (identifier in hotkeys.HOTKEYS) {