Commit b6ef573d authored by Hubert Denkmair's avatar Hubert Denkmair
Browse files

fix logmessage when saving without title

parent e157d8c6
......@@ -162,7 +162,9 @@ function save(action, title)
snake_id = data.snake_id;
snake_title = data.comment;
game.vis.FollowDbId(snake_id);
addLogLine(null, 'saved code as version #' + data.version + " title \"" + data.comment + "\"");
let logline = 'saved code as version #' + data.version;
if (data.comment) { logline += "(\"" + data.comment + "\")"; }
addLogLine(null, logline);
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment