From 2451eeee2b812af2c524adfb38809c17ad4389c6 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 8 Jun 2016 20:12:24 +0200 Subject: Fix "Forbidden" "link" --- client.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client.js b/client.js index 51a5d33..606a331 100755 --- a/client.js +++ b/client.js @@ -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()); -- cgit v1.2.3