From 3b23eedc21e6587f365cc443bf830e6453e71267 Mon Sep 17 00:00:00 2001 From: Redume Date: Tue, 22 Nov 2022 21:38:57 +0300 Subject: [PATCH] Analytics has been done, it is possible to turn it off --- web/src/settings.html | 1 + web/static/scripts/switch.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/web/src/settings.html b/web/src/settings.html index 74f4521..08b243c 100644 --- a/web/src/settings.html +++ b/web/src/settings.html @@ -87,5 +87,6 @@ + \ No newline at end of file diff --git a/web/static/scripts/switch.js b/web/static/scripts/switch.js index b28277f..bb39e71 100644 --- a/web/static/scripts/switch.js +++ b/web/static/scripts/switch.js @@ -188,6 +188,8 @@ $(document).ready(async function() { $analyticsSwitchTogglerName.text("Off"); $analyticsSwitch.removeAttr("checked"); + $("#analytics").remove(); + toast(data.message); } else { toast("Failed to apply settings.");