From 2642716f2465e90a62f74d5a912dffb3e8844060 Mon Sep 17 00:00:00 2001 From: Th3Dilli Date: Thu, 19 Jun 2025 02:27:15 +0200 Subject: [PATCH] handle null --- src/sites/twitch-twilight/modules/chat/input.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sites/twitch-twilight/modules/chat/input.jsx b/src/sites/twitch-twilight/modules/chat/input.jsx index a5df1d3d..732910cc 100644 --- a/src/sites/twitch-twilight/modules/chat/input.jsx +++ b/src/sites/twitch-twilight/modules/chat/input.jsx @@ -426,7 +426,7 @@ export default class Input extends Module { const el = this.fine.getHostNode(inst); const above = this.chat.context.get('chat.actions.room-above'); - const target = above && el ? el : el.querySelector('.chat-input__textarea'); + const target = above ? el : el && el.querySelector('.chat-input__textarea'); if ( ! target ) return;