aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Shen <iwshen11@gmail.com>2019-03-05 21:41:47 +0000
committerGitHub <noreply@github.com>2019-03-05 21:41:47 +0000
commita5ff29d43a952ebe2fcc18181a01beda0e5d62d2 (patch)
tree03121db88872a58363eed00703ad57f2151918fd
parentb70aaf5168dd60da1d4087962b7250d584b0936f (diff)
remove unnecessary !!
-rw-r--r--web/public/javascripts/map.js4
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
+}