1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-23 12:15:48 +02:00

Fix possible error when focusing DM input field

This commit is contained in:
chylex 2022-03-03 12:40:49 +01:00
parent a2129b957e
commit 8e5934bd84
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -4,7 +4,7 @@ import { TD } from "../api/td.js";
import { ensurePropertyExists } from "../api/utils.js";
function focusDmInput() {
document.querySelector(".js-reply-tweetbox").focus();
document.querySelector(".js-reply-tweetbox")?.focus();
}
/**