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

@ -43,4 +43,14 @@ function trackPageView(url, title) {
console.error(ex); console.error(ex);
} }
} }
}
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"> <div class="col-100 text-align-center">
<p>Privacy Info: This app doesn't sell your data. We do collect a small amount <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 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> </div>
</div> </div>