aboutsummaryrefslogtreecommitdiff
path: root/socket.js
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-03-26 00:07:38 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-03-26 00:07:38 -0400
commit9634a1c6d79a93ab79c5354d2240ed11ad9abbe7 (patch)
treeec579b22851d7e91f6ac854ac414fbfe66a80351 /socket.js
parent7f3110ec388bdf6b72579b70a5736f3f53809de4 (diff)
parent183b38854c8efef2af9e4118060bc2dc4a84befc (diff)
Merge branch 'master' into bulletbullet
Diffstat (limited to 'socket.js')
-rw-r--r--socket.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.js b/socket.js
index d5243a2..4563ed5 100644
--- a/socket.js
+++ b/socket.js
@@ -49,7 +49,7 @@ class Socket extends retryws {
this.fetch = function(coords){ //coords is a list of min/max pairs of y/x coordinate pairs which each describe at most 1000 tiles
//Unchecked for speed
- for (var i=0; i<coords.length; i++){
+ for (let i=0; i<coords.length; i++){
coords[i] = {"minY":coords[i][0][0], "minX":coords[i][0][1], "maxY":coords[i][1][0], "maxX":coords[i][1][1]};
}
this.send( JSON.stringify({