Allow turning off analytics on welcome screen

This commit is contained in:
Skylar Ittner 2022-01-27 23:48:50 -07:00
parent 6dc846b3ab
commit 25f28edd8e
2 changed files with 11 additions and 1 deletions

View File

@ -44,3 +44,13 @@ function trackPageView(url, title) {
}
}
}
function privacyPromptDialog() {
app.dialog.confirm("Turn off anonymous reporting?", "Analytics", function () {
setStorage("analytics", "false");
app.toast.show({
text: "Analytics disabled.",
closeTimeout: 3000
});
});
}

View File

@ -27,7 +27,7 @@
<div class="col-100 text-align-center">
<p>Privacy Info: This app doesn't sell your data. We do collect a small amount
of analytics to help improve the app. You can opt out in the
app settings.
app settings or by <a href="#" onclick="privacyPromptDialog()"><span class="taptext">tapping</span><span class="clicktext">clicking</span> here.</a>
</div>
</div>
</div>