diff options
author | Ajay <[email protected]> | 2022-02-06 23:20:01 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2022-02-06 23:20:01 -0500 |
commit | 8c60f25d4aa471538c482c72fbb7d5f48e4e097b (patch) | |
tree | 5d9c01f8430ed7113375154045a1b977630cc6f8 | |
parent | 7896b474dbf51a25e25a72b8339a093ada682253 (diff) | |
download | SponsorBlock-8c60f25d4aa471538c482c72fbb7d5f48e4e097b.tar.gz SponsorBlock-8c60f25d4aa471538c482c72fbb7d5f48e4e097b.zip |
Don't save downvotes in incognito
-rw-r--r-- | src/utils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.ts b/src/utils.ts index f593253f..747eaba4 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -490,6 +490,8 @@ export default class Utils { } async addHiddenSegment(videoID: VideoID, segmentUUID: string, hidden: SponsorHideType) { + if (chrome.extension.inIncognitoContext) return; + const hashedVideoID = (await this.getHash(videoID, 1)).slice(0, 4) as VideoID & HashedValue; const UUIDHash = await this.getHash(segmentUUID, 1); |