mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-16 18:44:45 -04:00
fix eslint
This commit is contained in:
@@ -241,13 +241,14 @@ function update_estimated_ram_use() {
|
||||
|
||||
document.getElementById('estimated_ram_use').innerHTML = human_filesize(buffer_count * width * height * colours, 0);
|
||||
}
|
||||
function updateLatitudeAndLongitude(latitude,longitude) {
|
||||
|
||||
function updateLatitudeAndLongitude(latitude, longitude) {
|
||||
var form = document.getElementById('contentForm');
|
||||
form.elements['newMonitor[Latitude]'].value = latitude;
|
||||
form.elements['newMonitor[Longitude]'].value = longitude;
|
||||
}
|
||||
function getLocation() {
|
||||
if('geolocation' in navigator) {
|
||||
if ('geolocation' in navigator) {
|
||||
navigator.geolocation.getCurrentPosition((position) => {
|
||||
updateLatitudeAndLongitude(position.coords.latitude, position.coords.longitude);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user