mirror of
https://github.com/lawrencehook/remove-youtube-suggestions.git
synced 2026-07-25 06:54:31 +00:00
fix undefined searchBar bug
This commit is contained in:
@@ -597,7 +597,7 @@ function handleNewPage() {
|
||||
// Autofocus the search bar
|
||||
if (on && !onVideo && (cache['autofocus_search'] || cache['search_engine_mode'])) {
|
||||
const searchBar = qs('input#search');
|
||||
if (!searchBar.value) {
|
||||
if (searchBar && !searchBar.value) {
|
||||
searchBar?.focus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user