From 4aa26434f8b2ebc7960d3fcbd32fe82403a62b6d Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sat, 25 Apr 2020 18:14:20 +0200 Subject: Fix restart through clearing the coordinate list --- htdocs/streeteditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/streeteditor.js b/htdocs/streeteditor.js index 230324c..a1a9097 100644 --- a/htdocs/streeteditor.js +++ b/htdocs/streeteditor.js @@ -64,7 +64,7 @@ if (editor_mode) { "* Double click a waypoint to delete it.\n" + "* Click save in the top right to get the new string.\n\n" + "Enter existing waypoints in the following format: [x,y],[x,y]:", window.location.hash.slice(1)); - if (!str) + if (str == undefined) return; } else { str = window.location.hash.slice(1); -- cgit v1.2.3