Remove console logs

This commit is contained in:
Lim Chee Aun 2022-12-12 08:47:11 +08:00
parent 87029b43d4
commit 21cfec3386

View file

@ -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 = [];