Small JS nits.

This commit is contained in:
Sascha L. Teichmann
2015-03-04 12:10:07 +01:00
parent c32e2646af
commit 446a3ddc10
2 changed files with 2 additions and 2 deletions

View File

@ -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';