8 lines
196 B
Plaintext
8 lines
196 B
Plaintext
import isBrowser from '../../../utils/isBrowser';
|
|
export default function isDocumentVisible() {
|
|
if (isBrowser) {
|
|
return document.visibilityState !== 'hidden';
|
|
}
|
|
return true;
|
|
}
|