Bad conditional meant that "user cancelled" errors weren't returning
early like they should have.
This commit is contained in:
Thomas Wilburn 2015-05-02 15:30:15 -07:00
parent 34f2d059ba
commit 02f393fee4
2 changed files with 4 additions and 4 deletions

View file

@ -85,8 +85,8 @@ define([
if (!self.file || as) {
var file = new File();
file.open("save", function(err) {
if (err && err.message != "User cancelled") {
dialog(err.message);
if (err) {
if (err.message != "User cancelled") dialog(err.message);
return deferred.fail(err);
}
self.file = file;

View file

@ -1,7 +1,7 @@
{
"name": "Caret",
"description": "Professional text editing for Chrome and Chrome OS",
"version": "1.5.3",
"version": "1.5.4",
"manifest_version": 2,
"default_locale": "en",
"icons": {
@ -158,4 +158,4 @@
]
}
}
}
}