Fallback for browsers that do not support localStorage. Fixes #591

This commit is contained in:
Tom MacWright
2013-02-01 13:12:46 -05:00
parent f1b6f5b14a
commit 031c8d655e
7 changed files with 41 additions and 34 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ iD.ui.commit = function(context) {
comment_section.append('textarea')
.attr('class', 'changeset-comment')
.attr('placeholder', 'Brief Description of your contributions')
.property('value', localStorage.comment || '')
.property('value', context.storage('comment') || '')
.node().select();
var commit_info =