mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +01:00
Still need tilde
Because there can be spaces around it
This commit is contained in:
parent
7967194b89
commit
b7a0d4fe28
1 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ window.__STATES_STATS__ = () => {
|
||||||
const unmountedPosts = [];
|
const unmountedPosts = [];
|
||||||
for (const key in statuses) {
|
for (const key in statuses) {
|
||||||
const $post = document.querySelector(
|
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) {
|
if (!$post) {
|
||||||
unmountedPosts.push(key);
|
unmountedPosts.push(key);
|
||||||
|
@ -94,7 +94,7 @@ setInterval(() => {
|
||||||
if (!window.__IDLE__) break;
|
if (!window.__IDLE__) break;
|
||||||
try {
|
try {
|
||||||
const $post = document.querySelector(
|
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(
|
const postInNotifications = notifications.some(
|
||||||
(n) => key === statusKey(n.status?.id, instance),
|
(n) => key === statusKey(n.status?.id, instance),
|
||||||
|
|
Loading…
Reference in a new issue