aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils.ts
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-03-18 19:45:35 -0400
committerAjay <[email protected]>2024-03-18 19:45:35 -0400
commitde094cb11f69b3b19dfb4dc3ce317cbd132eff32 (patch)
treef2c9a94d2eec32ba84fb0de4d4a71633e670cc8b /src/utils.ts
parent6c710363567e76dcfc58cc1189c18ab66968351c (diff)
downloadSponsorBlock-de094cb11f69b3b19dfb4dc3ce317cbd132eff32.tar.gz
SponsorBlock-de094cb11f69b3b19dfb4dc3ce317cbd132eff32.zip
Add option to store downvotes when done in private tabs
Diffstat (limited to 'src/utils.ts')
-rw-r--r--src/utils.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils.ts b/src/utils.ts
index c96a7772..7c3f985e 100644
--- a/src/utils.ts
+++ b/src/utils.ts
@@ -281,7 +281,8 @@ export default class Utils {
}
async addHiddenSegment(videoID: VideoID, segmentUUID: string, hidden: SponsorHideType) {
- if (chrome.extension.inIncognitoContext || !Config.config.trackDownvotes) return;
+ if ((chrome.extension.inIncognitoContext && !Config.config.trackDownvotesInPrivate)
+ || !Config.config.trackDownvotes) return;
const hashedVideoID = (await getHash(videoID, 1)).slice(0, 4) as VideoID & HashedValue;
const UUIDHash = await getHash(segmentUUID, 1);