mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-24 01:00:18 +01:00
Small JS nits.
This commit is contained in:
parent
c32e2646af
commit
446a3ddc10
@ -96,7 +96,7 @@ L.control.coordinates({
|
||||
}).addTo(map);
|
||||
|
||||
var manualUpdateControl;
|
||||
if (window.WebSocket && useWebsocket) {
|
||||
if (useWebsocket && 'WebSocket' in window) {
|
||||
L.autoUpdate('autoUpdate', function(pressed) {
|
||||
if (pressed) {
|
||||
manualUpdateControl.getContainer().style = 'visibility: hidden';
|
||||
|
@ -45,7 +45,7 @@ L.Control.AutoUpdate = L.Control.extend({
|
||||
this.socket.onmessage = function(evt) {
|
||||
|
||||
var invalidate = function(json) {
|
||||
var invalidateAll = function(x, y, z) { return true };
|
||||
var invalidateAll = function(x, y, z) { return true; };
|
||||
|
||||
if (!(typeof json === "string")) {
|
||||
return invalidateAll;
|
||||
|
Loading…
Reference in New Issue
Block a user