Don't save downvotes in incognito

This commit is contained in:
Ajay 2022-02-06 23:20:01 -05:00
parent 7896b474db
commit 8c60f25d4a

View file

@ -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);