mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-12 19:16:26 +01: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) {
|
if (document.hidden) {
|
||||||
const timestamp = Date.now();
|
const timestamp = Date.now();
|
||||||
store.session.set('lastHidden', timestamp);
|
store.session.set('lastHidden', timestamp);
|
||||||
console.log('hidden', timestamp);
|
|
||||||
} else {
|
} else {
|
||||||
const timestamp = Date.now();
|
const timestamp = Date.now();
|
||||||
const lastHidden = store.session.get('lastHidden');
|
const lastHidden = store.session.get('lastHidden');
|
||||||
const diff = timestamp - lastHidden;
|
const diff = timestamp - lastHidden;
|
||||||
const diffMins = Math.round(diff / 1000 / 60);
|
const diffMins = Math.round(diff / 1000 / 60);
|
||||||
console.log('visible', { timestamp, diff, diffMins });
|
|
||||||
if (diffMins > 1) {
|
if (diffMins > 1) {
|
||||||
|
console.log('visible', { lastHidden, diffMins });
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
loadStatuses(true);
|
loadStatuses(true);
|
||||||
states.homeNew = [];
|
states.homeNew = [];
|
||||||
|
|
Loading…
Reference in a new issue