diff --git a/4chan_x.user.js b/4chan_x.user.js index b6bbf8cec..d72184f71 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -754,7 +754,7 @@ return $.rm($('#qr')); case keybinds.spoiler: ta = d.activeElement; - if (d.activeElement.nodeName !== 'TEXTAREA') { + if (ta.nodeName !== 'TEXTAREA') { return; } e.preventDefault(); diff --git a/script.coffee b/script.coffee index f815ad3ac..85784282e 100644 --- a/script.coffee +++ b/script.coffee @@ -541,7 +541,7 @@ keybinds = $.rm $ '#qr' when keybinds.spoiler ta = d.activeElement - return unless d.activeElement.nodeName is 'TEXTAREA' + return unless ta.nodeName is 'TEXTAREA' e.preventDefault()