From d7a07208e1bba30a2de33f3b18c47c2431feb9fb Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 14 Aug 2017 23:14:05 -0400 Subject: [PATCH] Restore saving comment to localstorage --- modules/ui/commit.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ui/commit.js b/modules/ui/commit.js index 83732a943..7e57519e6 100644 --- a/modules/ui/commit.js +++ b/modules/ui/commit.js @@ -387,6 +387,10 @@ export function uiCommit(context) { if (changed.comment === undefined) { changed.comment = ''; } + if (!onInput) { + context.storage('comment', changed.comment); + context.storage('commentDate', Date.now()); + } } updateChangeset(changed, onInput);