From b7a0d4fe28350a701276e429aff1d1e053d7c363 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Fri, 24 Nov 2023 18:49:23 +0800 Subject: [PATCH] Still need tilde Because there can be spaces around it --- src/app.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index f0f89fa..0fcf230 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -73,7 +73,7 @@ window.__STATES_STATS__ = () => { const unmountedPosts = []; for (const key in statuses) { const $post = document.querySelector( - `[data-state-post-id="${key}"], [data-state-post-ids~="${key}"]`, + `[data-state-post-id~="${key}"], [data-state-post-ids~="${key}"]`, ); if (!$post) { unmountedPosts.push(key); @@ -94,7 +94,7 @@ setInterval(() => { if (!window.__IDLE__) break; try { const $post = document.querySelector( - `[data-state-post-id="${key}"], [data-state-post-ids~="${key}"]`, + `[data-state-post-id~="${key}"], [data-state-post-ids~="${key}"]`, ); const postInNotifications = notifications.some( (n) => key === statusKey(n.status?.id, instance),