mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +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) {
|
callback: function(err, data, xhr) {
|
||||||
if(err) {
|
if(err) {
|
||||||
callback(err);
|
callback(err);
|
||||||
} if(xhr.status === 200 || xhr.status === 201) {
|
} else if(xhr.status === 200 || xhr.status === 201) {
|
||||||
self.etag = xhr.getResponseHeader("ETag");
|
self.etag = xhr.getResponseHeader("ETag");
|
||||||
callback(null); // success
|
callback(null); // success
|
||||||
} else if(xhr.status === 412) { // edit conflict
|
} else if(xhr.status === 412) { // edit conflict
|
||||||
|
Loading…
Reference in New Issue
Block a user