mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
Put saver: fix missing "else"
Thanks @arlen22
This commit is contained in:
parent
ce7cb020fb
commit
df1f7e9798
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user