Skip to content

Commit

Permalink
Don't save history to localstorage in save mode
Browse files Browse the repository at this point in the history
(to avoid saving remote merges / conflict resolutions)
  • Loading branch information
bhousel committed Feb 26, 2015
1 parent 57e5113 commit 15bc087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/id/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ window.iD = function () {
};

context.save = function() {
if (inIntro) return;
if (inIntro || (mode && mode.id === 'save')) return;
history.save();
if (history.hasChanges()) return t('save.unsaved_changes');
};
Expand Down

0 comments on commit 15bc087

Please sign in to comment.