Skip to content

Commit

Permalink
removed tracking from UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Oct 19, 2024
1 parent 9e7302d commit 9c7c807
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
8 changes: 0 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -573,14 +573,6 @@ <h6 class="fs-6">Audio Library:<a class="circle new-circle me-2" tabindex="-1" d
</div>
</div>
</div>
<div class="col-auto form-group rounded p-2 mb-2">
<div class="text-nowrap">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="do-not-track">
<label class="form-check-label me-2" for="do-not-track">Opt out of usage analytics</label><a class="circle" tabindex="-1" data-bs-toggle="popover" data-bs-trigger="focus" data-bs-title="Disable Tracking" id="Disable Tracking-circle-help" data-bs-content="Chirpity collects anonymous system data to enhance user experience and aid bug tracking. If you do not want to share this information, you can disable it here.">?</a>
</div>
</div>
</div>
<div class="col-auto form-group rounded p-2 mb-2">
<div class="text-nowrap">
<div class="form-check form-switch">
Expand Down
10 changes: 2 additions & 8 deletions js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1931,12 +1931,11 @@ window.onload = async () => {
// check for new version on mac platform. pkg containers are not an auto-updatable target
// https://www.electron.build/auto-update#auto-updatable-targets
isMac && checkForMacUpdates();
const doNotTrack = document.getElementById('do-not-track')
doNotTrack.checked = !config.track;

// Add cpu model & memory to config
config.CPU = DIAGNOSTICS['CPU'];
config.RAM = DIAGNOSTICS['System Memory'];
config.track && trackVisit(config);
trackVisit(config);
})
}

Expand Down Expand Up @@ -4708,11 +4707,6 @@ DOM.gain.addEventListener('input', () => {
case 'confidenceValue': case 'confidence': { handleThresholdChange(e); break }
case 'context' : { toggleContextAwareMode(e); break }
case 'attenuation': { handleAttenuationchange(e); break }
case 'do-not-track': {
config.track = !element.checked;
worker.postMessage({ action: 'update-state', track: config.track })
break;
}
case 'lowShelfFrequency': { handleLowShelfchange(e); break }
case 'HighPassFrequency' : { handleHPchange(e); break }
case 'snrValue' : { handleSNRchange(e); break }
Expand Down

0 comments on commit 9c7c807

Please sign in to comment.