From 25f28edd8e4d15cdd655c6a0b03731f21f120bdd Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Thu, 27 Jan 2022 23:48:50 -0700 Subject: [PATCH] Allow turning off analytics on welcome screen --- www/assets/js/reporting.js | 10 ++++++++++ www/pages/welcome.html | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/www/assets/js/reporting.js b/www/assets/js/reporting.js index a0dfccf..2b0b7c5 100644 --- a/www/assets/js/reporting.js +++ b/www/assets/js/reporting.js @@ -43,4 +43,14 @@ function trackPageView(url, title) { 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 + }); + }); } \ No newline at end of file diff --git a/www/pages/welcome.html b/www/pages/welcome.html index b3bd352..d653ddf 100644 --- a/www/pages/welcome.html +++ b/www/pages/welcome.html @@ -27,7 +27,7 @@

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 tappingclicking here.