fix maps when http

This commit is contained in:
Ibnu Maksum
2024-03-24 13:39:00 +07:00
parent 18967b59e2
commit e709ea4353
3 changed files with 3 additions and 3 deletions

View File

@ -163,7 +163,7 @@
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>
<script>
function getLocation() {
if (navigator.geolocation) {
if (window.location.protocol == "https:" && navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
setupMap(51.505, -0.09);