style: wrap long query selector in getRenderedWatchlistIds
This commit is contained in:
@@ -265,7 +265,9 @@ const getRenderedWatchlistIds = (): number[] => {
|
|||||||
const ids = new Set<number>();
|
const ids = new Set<number>();
|
||||||
|
|
||||||
document
|
document
|
||||||
.querySelectorAll<HTMLElement>('[data-watchlist-toggle][data-watchlist-state="in"][data-mal-id]')
|
.querySelectorAll<HTMLElement>(
|
||||||
|
'[data-watchlist-toggle][data-watchlist-state="in"][data-mal-id]'
|
||||||
|
)
|
||||||
.forEach(button => {
|
.forEach(button => {
|
||||||
const id = toInt(button.dataset.malId);
|
const id = toInt(button.dataset.malId);
|
||||||
if (id === null) return;
|
if (id === null) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user