Skip to content
Snippets Groups Projects

Only display to index route

Merged Vic Nguyen requested to merge notification-release into master
1 file
+ 1
3
Compare changes
  • Side-by-side
  • Inline
+ 1
3
@@ -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();
}
}
Loading