Skip to content

Commit

Permalink
fix #97 #98 (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamachi25 authored Oct 20, 2024
1 parent 50d9f70 commit 760f72c
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 760f72c

Please sign in to comment.