2
u/whamjayd Jan 05 '22
More info:
the code is entering the if statement 106 times (the right amount) but it is only triggering the last element of the list created by querySelectorAll
2
More info:
the code is entering the if statement 106 times (the right amount) but it is only triggering the last element of the list created by querySelectorAll
3
u/whamjayd Jan 05 '22
Ok, so I had to put a:
await new Promise(r => setTimeout(r, 500));
and now it works, I'll leave the post up in case someone comes across the same problem