mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 10:15:37 +03:00
Remove console logs
This commit is contained in:
parent
87029b43d4
commit
21cfec3386
1 changed files with 1 additions and 2 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in a new issue