summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2020-11-19 14:03:27 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2020-11-20 13:39:20 +0100
commitd539abf378edfefeb89c9411af0431de4be626fd (patch)
tree8b14e0769db1f970c7dcb70c96277d36f82f6c2c
parent78ae9bf9237648c21fa9db18475a057c84edbdf0 (diff)
downloadtdde25-d539abf378edfefeb89c9411af0431de4be626fd.tar.gz
for (const x of y)path-coloring
-rw-r--r--templates/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/index.js b/templates/index.js
index f7550c0..3268b8b 100644
--- a/templates/index.js
+++ b/templates/index.js
@@ -29,7 +29,7 @@ async function postShortestPath(event){
res = await res.json()
- for (edge of res.edges) {
+ for (const edge of res.edges) {
console.log(edge)
L.polyline(edge.path, {
color: edge.color