Skip to content

Commit

Permalink
senMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Jan 14, 2025
1 parent f70f089 commit 424a912
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/content-script/amazon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function addSkippedTime(startTime: number, endTime: number, key: Statistic
if (typeof startTime === "number" && typeof endTime === "number" && endTime > startTime) {
console.log(key, endTime - startTime)
settings.value.Statistics[key] += endTime - startTime
increaseBadge()
sendMessage("increaseBadge", {}, "background")
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/content-script/disney.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function addSkippedTime(startTime: number, endTime: number, key: Statistic
if (typeof startTime === "number" && typeof endTime === "number" && endTime > startTime) {
console.log(key, endTime - startTime)
settings.value.Statistics[key] += endTime - startTime
increaseBadge()
sendMessage("increaseBadge", {}, "background")
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/content-script/max.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function addSkippedTime(startTime: number, endTime: number, key: Statistic
if (typeof startTime === "number" && typeof endTime === "number" && endTime > startTime) {
console.log(key, endTime - startTime)
settings.value.Statistics[key] += endTime - startTime
increaseBadge()
sendMessage("increaseBadge", {}, "background")
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/content-script/netflix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function addSkippedTime(startTime: number, endTime: number, key: Statistic
if (typeof startTime === "number" && typeof endTime === "number" && endTime > startTime) {
console.log(key, endTime - startTime)
settings.value.Statistics[key] += endTime - startTime
increaseBadge()
sendMessage("increaseBadge", {}, "background")
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/content-script/static.crunchyroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function addSkippedTime(startTime: number, endTime: number, key: Statistic
if (typeof startTime === "number" && typeof endTime === "number" && endTime > startTime) {
console.log(key, endTime - startTime)
settings.value.Statistics[key] += endTime - startTime
increaseBadge()
sendMessage("increaseBadge", {}, "background")
}
}

Expand Down

0 comments on commit 424a912

Please sign in to comment.