diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-06-08 20:12:24 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-06-08 20:12:24 +0200 |
commit | 2451eeee2b812af2c524adfb38809c17ad4389c6 (patch) | |
tree | c8089137b76202d72b69fbdf245595e6c06e8d86 | |
parent | 63ba6f4b8a6ce4370d7846102028b06e526c83ee (diff) |
Fix "Forbidden" "link"
-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()); |