mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-23 22:14:42 +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
|
// Every 5 minutes
|
||||||
// Only posts for now
|
// Only posts for now
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
|
if (!window.__IDLE__) return;
|
||||||
const { statuses } = states;
|
const { statuses } = states;
|
||||||
for (const key in statuses) {
|
for (const key in statuses) {
|
||||||
const $post = document.querySelector(`[data-state-post-id~="${key}"]`);
|
const $post = document.querySelector(`[data-state-post-id~="${key}"]`);
|
||||||
|
|
Loading…
Add table
Reference in a new issue