https redirect for gps

This commit is contained in:
zyphlar 2023-05-24 13:30:20 -07:00
parent a6cfbb7e41
commit c836a00bd1
Signed by: will
GPG Key ID: 1159B930701263F3

View File

@ -301,6 +301,14 @@
<script language="javascript"> <script language="javascript">
if(
window.location.protocol != 'https:'
&& window.location.protocol != 'file:'
&& window.location.host != 'localhost'
) {
location.href = location.href.replace("http://", "https://");
}
var map = L.map('map').on({ var map = L.map('map').on({
click: loadMapCoords click: loadMapCoords
}).setView([0, 0], 10); }).setView([0, 0], 10);