mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-13 04:46:08 -08:00
Fix Yomitan blur guard
This commit is contained in:
1 parent
f0e15c5dc4
commit
04742b1806
1 file changed
+1
-1
@@ -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