diff --git a/ext/ui-build/data/root.html b/ext/ui-build/data/root.html index 32549ae5ce..9a4f700fe9 100644 --- a/ext/ui-build/data/root.html +++ b/ext/ui-build/data/root.html @@ -105,7 +105,8 @@ frameEscapeFunctions[frameName] = () => { setTimeout(() => { if (document.activeElement == document.body) { - frame.contentWindow.focus(); + // Added questions marks to avoid throwing error while something is null + frame?.contentWindow?.focus(); } }, 32); }