From 7b0cdd1ddb347d7a251ebdd7297dfe9daa54f945 Mon Sep 17 00:00:00 2001 From: Matt Furden Date: Wed, 30 Nov 2022 10:52:36 -0800 Subject: [PATCH] Correct `showWindowControlsBtn` reference An event listener was being added to `showWindowControlsBtn` but the variable was undefined. Here we correct the definition of `showWindowControlsBtn` and update it to point to the correct `id`. --- webview/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webview/src/index.js b/webview/src/index.js index 49107ba..f115cfe 100644 --- a/webview/src/index.js +++ b/webview/src/index.js @@ -9,7 +9,7 @@ const btnSave = $('#save'); const btnCopy = $('#secondMainBtn'); const showLineNumBtn = $('#showLineNumBtn'); -const showWindowControls = $('#showWindowControls'); +const showWindowControlsBtn = $('#showWindowControlsBtn'); const modeChangeBtn = $("#modeChangeBtn") let _toolMode;