diff options
-rwxr-xr-x | client.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -171,10 +171,8 @@ function sendfile(fname,retries){ res.on("end",function(){ if(res.statusCode!=200){ if(retries>0)sendfile(fname,retries-1); - else { - dialog.warn("Could not upload image! Are your credentials still okay?\n\n"+body); - return; - } + else dialog.warn("Could not upload image! Are your credentials still okay?\n\n"+body); + return; } console.log("Successful upload"); toClipboard.sync(body.trim()); |