diff options
| author | Pitu <[email protected]> | 2017-04-27 04:45:15 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-04-27 04:45:15 -0300 |
| commit | dca43e948ecc8097766a348cb4f40a9798449539 (patch) | |
| tree | 1e028c41a1c50ad4f3595e330b9057fcc19df425 /public/js | |
| parent | Moved the eventListener (diff) | |
| download | host.fuwn.me-dca43e948ecc8097766a348cb4f40a9798449539.tar.xz host.fuwn.me-dca43e948ecc8097766a348cb4f40a9798449539.zip | |
Derp
Diffstat (limited to 'public/js')
| -rw-r--r-- | public/js/home.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/public/js/home.js b/public/js/home.js index 9300452..b71943b 100644 --- a/public/js/home.js +++ b/public/js/home.js @@ -14,8 +14,8 @@ upload.checkIfPublic = function(){ upload.preparePage(); }) .catch(function (error) { - return swal("An error ocurred", 'There was an error with the request, please check the console for more information.', "error"); - console.log(error); + swal("An error ocurred", 'There was an error with the request, please check the console for more information.', "error"); + return console.log(error); }); } @@ -54,8 +54,8 @@ upload.verifyToken = function(token, reloadOnError){ }) .catch(function (error) { - return swal("An error ocurred", 'There was an error with the request, please check the console for more information.', "error"); - console.log(error); + swal("An error ocurred", 'There was an error with the request, please check the console for more information.', "error"); + return console.log(error); }); } @@ -88,8 +88,8 @@ upload.prepareUpload = function(){ document.getElementById('albumDiv').style.display = 'block'; }) .catch(function(e) { - return swal("An error ocurred", 'There was an error with the request, please check the console for more information.', "error"); - console.log(e); + swal("An error ocurred", 'There was an error with the request, please check the console for more information.', "error"); + return console.log(e); }) } |