Код: Выделить всё
document.addEventListener('visibilitychange', () => {
if (document.visibilityState === 'visible') {
console.log('Tab is active');
this.checkInactivity();
} else {
console.log('Tab is inactive');
}
});
может кто -нибудь помочь?
Подробнее здесь: https://stackoverflow.com/questions/796 ... on-from-sl
Мобильная версия