1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Put saver: fix missing "else"

Thanks @arlen22
This commit is contained in:
Jermolene 2018-04-08 09:37:49 +01:00
parent ce7cb020fb
commit df1f7e9798

View File

@ -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