mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 16:46:28 +01:00
Only run when idle
This commit is contained in:
parent
e5d5025299
commit
87d0b86ecb
1 changed files with 1 additions and 0 deletions
|
@ -84,6 +84,7 @@ window.__STATES_STATS__ = () => {
|
|||
// Every 5 minutes
|
||||
// Only posts for now
|
||||
setInterval(() => {
|
||||
if (!window.__IDLE__) return;
|
||||
const { statuses } = states;
|
||||
for (const key in statuses) {
|
||||
const $post = document.querySelector(`[data-state-post-id~="${key}"]`);
|
||||
|
|
Loading…
Reference in a new issue