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

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 } ?>
});