From a3be2e68df0fdd07798eb405adc3858a647da16a Mon Sep 17 00:00:00 2001
From: "Vic Nguyen O.O" <vic.nguyen@qt.io>
Date: Wed, 30 Oct 2024 16:45:56 +0200
Subject: [PATCH] Only show this to index file

---
 www/index.html | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/www/index.html b/www/index.html
index 0020e1f..1a38a4e 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();
           }
-- 
GitLab