From 612b93db1fad7b9c2cdb02d3db7b3081781caaa5 Mon Sep 17 00:00:00 2001
From: "Vic Nguyen O.O" <vic.nguyen@qt.io>
Date: Wed, 30 Oct 2024 16:49:10 +0200
Subject: [PATCH] Only display to index route

---
 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