Fixed missing input check
This commit is contained in:
@ -175,7 +175,10 @@ export default class AnimeNotifier {
|
||||
// Auto-focus first input element on welcome page.
|
||||
if(location.pathname === "/welcome") {
|
||||
let firstInput = this.app.content.getElementsByTagName("input")[0] as HTMLInputElement
|
||||
firstInput.focus()
|
||||
|
||||
if(firstInput) {
|
||||
firstInput.focus()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user