From d52664d11c4a674fbec2da92dab3822e66c46e8b Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 9 Dec 2017 00:03:07 +0300 Subject: [PATCH] code cosmetics --- popup/hotkeys.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/popup/hotkeys.js b/popup/hotkeys.js index 443e9e32..6493e8c6 100644 --- a/popup/hotkeys.js +++ b/popup/hotkeys.js @@ -192,12 +192,11 @@ var hotkeys = (() => { } function adjustInfoPosition(debounced) { - const container = $('#hotkey-info'); if (debounced !== true) { debounce(adjustInfoPosition, 100, true); return; } - const style = container.style; + const style = $('#hotkey-info').style; if (installed.scrollHeight > installed.clientHeight) { const entryRight = installed.firstElementChild.getBoundingClientRect().right; style.setProperty('right', window.innerWidth - entryRight + 'px', 'important');