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:
parent
a2129b957e
commit
8e5934bd84
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user