diff options
| author | Ivan Shen <iwshen11@gmail.com> | 2019-03-05 21:41:47 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-05 21:41:47 +0000 |
| commit | a5ff29d43a952ebe2fcc18181a01beda0e5d62d2 (patch) | |
| tree | 03121db88872a58363eed00703ad57f2151918fd /web/public/javascripts | |
| parent | b70aaf5168dd60da1d4087962b7250d584b0936f (diff) | |
remove unnecessary !!
Diffstat (limited to 'web/public/javascripts')
| -rw-r--r-- | web/public/javascripts/map.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/public/javascripts/map.js b/web/public/javascripts/map.js index 2547780..4b8b8f3 100644 --- a/web/public/javascripts/map.js +++ b/web/public/javascripts/map.js @@ -24,7 +24,7 @@ L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}{r} ext: 'png' }).addTo(map); plotPointsOnMap(points); -if (!!window.EventSource) { +if (window.EventSource) { var source = new EventSource('/stream'); source.addEventListener('message', function(e) { @@ -46,4 +46,4 @@ if (!!window.EventSource) { }, false) } else { console.log("sse not supported."); -}
\ No newline at end of file +} |
