diff options
Diffstat (limited to 'source/features/selection-in-new-tab.tsx')
| -rw-r--r-- | source/features/selection-in-new-tab.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/selection-in-new-tab.tsx b/source/features/selection-in-new-tab.tsx index 3bf8d159..feba040a 100644 --- a/source/features/selection-in-new-tab.tsx +++ b/source/features/selection-in-new-tab.tsx @@ -12,7 +12,7 @@ function init(): void { }); // Get the list element that contains the unread class and mark it as read. - selected.closest('li')!.classList.replace('unread', 'read'); + selected.closest('.unread')?.classList.replace('unread', 'read'); } }); } |
