mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 18:25:41 +03:00
Some debugging if this actually runs
This commit is contained in:
parent
5a4f1fb686
commit
7c8d310ed9
1 changed files with 5 additions and 0 deletions
|
@ -86,6 +86,7 @@ window.__STATES_STATS__ = () => {
|
|||
setInterval(() => {
|
||||
if (!window.__IDLE__) return;
|
||||
const { statuses, unfurledLinks } = states;
|
||||
let keysCount = 0;
|
||||
for (const key in statuses) {
|
||||
try {
|
||||
const $post = document.querySelector(`[data-state-post-id~="${key}"]`);
|
||||
|
@ -100,9 +101,13 @@ setInterval(() => {
|
|||
break;
|
||||
}
|
||||
}
|
||||
keysCount++;
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
if (keysCount) {
|
||||
console.info(`GC: Removed ${keysCount} keys`);
|
||||
}
|
||||
}, 15 * 60 * 1000);
|
||||
|
||||
// Preload icons
|
||||
|
|
Loading…
Reference in a new issue