mirror of
https://github.com/Starlio-app/StarlioX
synced 2024-11-05 06:03:57 +03:00
Analytics has been done, it is possible to turn it off
This commit is contained in:
parent
d8bc09074c
commit
3b23eedc21
2 changed files with 3 additions and 0 deletions
|
@ -87,5 +87,6 @@
|
|||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.min.js" integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous"></script>
|
||||
<script src="/static/scripts/switch.js" type="application/javascript"></script>
|
||||
<script src="/static/scripts/createLabel.js" type="application/javascript"></script>
|
||||
<script src="/static/scripts/analytics.js" type="module" id="analytics"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue