mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 20:28:52 +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(() => {
|
setInterval(() => {
|
||||||
if (!window.__IDLE__) return;
|
if (!window.__IDLE__) return;
|
||||||
const { statuses, unfurledLinks } = states;
|
const { statuses, unfurledLinks } = states;
|
||||||
|
let keysCount = 0;
|
||||||
for (const key in statuses) {
|
for (const key in statuses) {
|
||||||
try {
|
try {
|
||||||
const $post = document.querySelector(`[data-state-post-id~="${key}"]`);
|
const $post = document.querySelector(`[data-state-post-id~="${key}"]`);
|
||||||
|
@ -100,9 +101,13 @@ setInterval(() => {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
keysCount++;
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
if (keysCount) {
|
||||||
|
console.info(`GC: Removed ${keysCount} keys`);
|
||||||
|
}
|
||||||
}, 15 * 60 * 1000);
|
}, 15 * 60 * 1000);
|
||||||
|
|
||||||
// Preload icons
|
// Preload icons
|
||||||
|
|
Loading…
Reference in a new issue