diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2020-11-19 14:03:27 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2020-11-20 13:39:20 +0100 |
| commit | d539abf378edfefeb89c9411af0431de4be626fd (patch) | |
| tree | 8b14e0769db1f970c7dcb70c96277d36f82f6c2c | |
| parent | 78ae9bf9237648c21fa9db18475a057c84edbdf0 (diff) | |
| download | tdde25-path-coloring.tar.gz | |
for (const x of y)path-coloring
| -rw-r--r-- | templates/index.js | 2 |
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 |
