diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-27 20:27:24 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-27 20:27:24 +0200 |
| commit | 2c7ced1f503299e6ede6d3ef2b5e115318f5401f (patch) | |
| tree | 2e2a37771bac3c74457595322819e5a35f069e1f | |
| parent | 758893d3df999464a3f7a4ebda0937e515094fce (diff) | |
Fix redeclaration of "res" variable in pomf.js
Fixes ESLint warning no-redeclare.
| -rw-r--r-- | js/pomf.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -139,10 +139,10 @@ $(function() { totalName.html('Grabbing URLs…'); }); - up.on('load', function(e, res) { + up.on('load', function(e, response) { switch (e.target.status) { case 200: - var res = JSON.parse(res); + var res = JSON.parse(response); if (!res.success) { uploadFiles.addClass('error'); totalName.text(UPLOAD_ERR_FAILED); |
