mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-14 10:36:19 +02:00
add check on editorWithFocus before using it.
This commit is contained in:
@ -342,7 +342,9 @@ runBtn, searchInput
|
||||
} else {
|
||||
searchInput.value = '';
|
||||
// Give last focused editor, focus again
|
||||
editorWithFocus.focus();
|
||||
if (editorWithFocus) {
|
||||
editorWithFocus.focus();
|
||||
}
|
||||
}
|
||||
document.body.classList[isSavedItemsPaneOpen ? 'add' : 'remove']('overlay-visible');
|
||||
}
|
||||
|
Reference in New Issue
Block a user