Restore saving comment to localstorage

This commit is contained in:
Bryan Housel
2017-08-14 23:14:05 -04:00
parent 194b56c0f0
commit d7a07208e1
+4
View File
@@ -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);