diff --git a/www/index.html b/www/index.html index 0020e1fb35a338b9efd1ed8842c16af5830e539e..1a38a4e2a4877aacd1ba55881dd02abdc9f8dd89 100644 --- a/www/index.html +++ b/www/index.html @@ -49,9 +49,7 @@ <!-- Modal --> <script> document.addEventListener("DOMContentLoaded", function() { - // Check if 'dv-maintaince-consent' exists in localStorage - if (!localStorage.getItem('dv-maintaince-consent')) { - // If not present, show the modal + if (window.location.pathname === '/' && !localStorage.getItem('dv-maintaince-consent')) { var myModal = new bootstrap.Modal(document.getElementById('staticBackdrop')); myModal.show(); }