Only init map on index page to prevent JS error

This commit is contained in:
phl0 2023-07-14 07:56:59 +02:00
parent 4e0d57c2f1
commit c3eca478e9
No known key found for this signature in database
GPG key ID: 48EA1E640798CA9A

View file

@ -47,7 +47,9 @@
<?php } else { ?>
var grid = "No";
<?php } ?>
<?php if ($this->uri->segment(2) != "search" && $this->uri->segment(2) != "satellites") { ?>
initmap(grid);
<?php } ?>
});