Remove console logs

pull/1/head
Lim Chee Aun 2022-12-12 08:47:11 +08:00
rodzic 87029b43d4
commit 21cfec3386
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -76,14 +76,13 @@ export default ({ hidden }) => {
if (document.hidden) {
const timestamp = Date.now();
store.session.set('lastHidden', timestamp);
console.log('hidden', timestamp);
} else {
const timestamp = Date.now();
const lastHidden = store.session.get('lastHidden');
const diff = timestamp - lastHidden;
const diffMins = Math.round(diff / 1000 / 60);
console.log('visible', { timestamp, diff, diffMins });
if (diffMins > 1) {
console.log('visible', { lastHidden, diffMins });
setTimeout(() => {
loadStatuses(true);
states.homeNew = [];