Skip to content

Commit

Permalink
Ignore clicks to watch-later button
Browse files Browse the repository at this point in the history
Previously, we treated it as a click on the video
  • Loading branch information
cpiber committed Aug 8, 2024
1 parent 1acf082 commit 11820ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/content/nebula/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ const click = async (e: MouseEvent) => {
const q = Queue.get();
const target = e.target as HTMLElement;

if (target.closest('.nebula-watch-later'))
return;

if (target.closest('main [role="listbox"]') && location.pathname.startsWith('/settings/preferences'))
return changeTheme(e);

Expand Down

0 comments on commit 11820ed

Please sign in to comment.