From 355ebd1069f8b7ec3167dc88bd19c042d9ebbcb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Mon, 31 May 2021 22:17:04 +0200 Subject: [PATCH] Proper variable declaration Variable "i" from for-cycle was undeclared, so when the code was run in strict mode, it failed. --- plugins/record/mousetrap-record.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/record/mousetrap-record.js b/plugins/record/mousetrap-record.js index b7d364df..97e815ff 100644 --- a/plugins/record/mousetrap-record.js +++ b/plugins/record/mousetrap-record.js @@ -58,6 +58,7 @@ */ function _handleKey(character, modifiers, e) { var self = this; + var i; if (!self.recording) { _origHandleKey.apply(self, arguments);