diff --git a/src/content-script/amazon.ts b/src/content-script/amazon.ts index 356a7e73..23ce2535 100644 --- a/src/content-script/amazon.ts +++ b/src/content-script/amazon.ts @@ -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") } } diff --git a/src/content-script/disney.ts b/src/content-script/disney.ts index ce86b229..04905ed7 100644 --- a/src/content-script/disney.ts +++ b/src/content-script/disney.ts @@ -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") } } diff --git a/src/content-script/max.ts b/src/content-script/max.ts index 4d3cf097..d5c82efd 100644 --- a/src/content-script/max.ts +++ b/src/content-script/max.ts @@ -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") } } diff --git a/src/content-script/netflix.ts b/src/content-script/netflix.ts index ec22d073..5f03d0fe 100644 --- a/src/content-script/netflix.ts +++ b/src/content-script/netflix.ts @@ -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") } } diff --git a/src/content-script/static.crunchyroll.ts b/src/content-script/static.crunchyroll.ts index 4276f572..69ef4928 100644 --- a/src/content-script/static.crunchyroll.ts +++ b/src/content-script/static.crunchyroll.ts @@ -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") } }