From 87d0b86ecb3620ac81c9c92080895a556f764a6b Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 5 Nov 2023 08:26:51 +0800 Subject: [PATCH] Only run when idle --- src/app.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.jsx b/src/app.jsx index ecbd05d8..83146c54 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -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}"]`);