Allow not counting time in private tabs

Closes https://github.com/ajayyy/SponsorBlock/issues/703
This commit is contained in:
Ajay Ramachandran
2021-06-11 18:17:40 -04:00
parent 29b29e3f6e
commit 8cb212a77b
5 changed files with 29 additions and 2 deletions

View File

@@ -987,8 +987,8 @@ function previewTime(time: number, unpause = true) {
//send telemetry and count skip
function sendTelemetryAndCount(skippingSegments: SponsorTime[], secondsSkipped: number, fullSkip: boolean) {
if (!Config.config.trackViewCount) return;
if (!Config.config.trackViewCount || (!Config.config.trackViewCountInPrivate && chrome.extension.inIncognitoContext)) return;
let counted = false;
for (const segment of skippingSegments) {
const index = sponsorTimes.indexOf(segment);