mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-11-18 12:54:27 +00:00
Put saver: fix missing "else"
Thanks @arlen22
This commit is contained in:
1 parent
ce7cb020fb
commit
df1f7e9798
1 file changed
+1
-1
@@ -70,7 +70,7 @@ PutSaver.prototype.save = function(text, method, callback) {
|
||||
callback: function(err, data, xhr) {
|
||||
if(err) {
|
||||
callback(err);
|
||||
} if(xhr.status === 200 || xhr.status === 201) {
|
||||
} else if(xhr.status === 200 || xhr.status === 201) {
|
||||
self.etag = xhr.getResponseHeader("ETag");
|
||||
callback(null); // success
|
||||
} else if(xhr.status === 412) { // edit conflict
|
||||
|
||||
Reference in new issue
Block a user