Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hamachi25 committed Oct 20, 2024
1 parent 50d9f70 commit 65aa648
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/content_scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ switch (url.pathname) {
});

on_partId_change(async (prev, next) => {
if (prev?.videoId && getThreads() && next) {
if (prev && prev.workId !== next?.workId) {
await setWorkInfo();
if (!getThreads()) return;

if (await getConfig("load_comments_on_next_video")) await auto_play();
else
Expand Down

0 comments on commit 65aa648

Please sign in to comment.