Skip to content

Commit 280efa1

Browse files
committed
fix fb msg count
1 parent 0834fe9 commit 280efa1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/fb_messengerCount_main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ function main() {
5454
}
5555

5656
function search(text) {
57-
[...tableDiv.querySelectorAll("tr")].forEach((tr) => {
57+
[...tableDiv.querySelectorAll("tr")].forEach((tr, index) => {
58+
if (index == 0) return; // ignore table header
59+
5860
let html = tr.innerHTML;
5961
if (!html.toLowerCase().includes(text.toLowerCase())) {
6062
tr.classList.add("hidden");

0 commit comments

Comments
 (0)