Skip to content
Snippets Groups Projects
Commit 612b93db authored by Vic Nguyen's avatar Vic Nguyen :ghost:
Browse files

Only display to index route

parent 819fc7d9
No related branches found
No related tags found
1 merge request!33Only display to index route
Pipeline #78320 canceled
...@@ -49,9 +49,7 @@ ...@@ -49,9 +49,7 @@
<!-- Modal --> <!-- Modal -->
<script> <script>
document.addEventListener("DOMContentLoaded", function() { document.addEventListener("DOMContentLoaded", function() {
// Check if 'dv-maintaince-consent' exists in localStorage if (window.location.pathname === '/' && !localStorage.getItem('dv-maintaince-consent')) {
if (!localStorage.getItem('dv-maintaince-consent')) {
// If not present, show the modal
var myModal = new bootstrap.Modal(document.getElementById('staticBackdrop')); var myModal = new bootstrap.Modal(document.getElementById('staticBackdrop'));
myModal.show(); myModal.show();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment