mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-09 04:19:27 -07:00
Fix Yomitan blur guard
This commit is contained in:
@@ -432,7 +432,7 @@ export function createMouseHandlers(
|
|||||||
|
|
||||||
window.addEventListener('blur', () => {
|
window.addEventListener('blur', () => {
|
||||||
queueMicrotask(() => {
|
queueMicrotask(() => {
|
||||||
if (typeof document !== 'undefined' && document.visibilityState !== 'visible') {
|
if (typeof document === 'undefined' || document.visibilityState !== 'visible') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
reconcilePopupInteraction({ reclaimFocus: true });
|
reconcilePopupInteraction({ reclaimFocus: true });
|
||||||
|
|||||||
Reference in New Issue
Block a user