Fix Yomitan blur guard

This commit is contained in:
sudacode committed 2026-04-09 00:09:15 -07:00
1 parent f0e15c5dc4
commit 04742b1806
1 file changed
+1 -1
+1 -1
View File
@@ -432,7 +432,7 @@ export function createMouseHandlers(
window.addEventListener('blur', () => {
queueMicrotask(() => {
if (typeof document !== 'undefined' && document.visibilityState !== 'visible') {
if (typeof document === 'undefined' || document.visibilityState !== 'visible') {
return;
}
reconcilePopupInteraction({ reclaimFocus: true });