From 424a912a2d71a8baa0c3db8345aeeb04ed18ba89 Mon Sep 17 00:00:00 2001 From: Marvin Alexander Krebber Date: Tue, 14 Jan 2025 08:45:12 +0100 Subject: [PATCH] senMessage --- src/content-script/amazon.ts | 2 +- src/content-script/disney.ts | 2 +- src/content-script/max.ts | 2 +- src/content-script/netflix.ts | 2 +- src/content-script/static.crunchyroll.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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") } }