Skip to content

Commit

Permalink
Merge pull request #1 from Darker/patch-1
Browse files Browse the repository at this point in the history
There was a variable name mish-mash
  • Loading branch information
eirikb committed Oct 18, 2014
2 parents cd313f3 + 9222e92 commit c322724
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ $(function() {
$group.hide();

var auth;
if (token) authorization = 'Bearer ' + token;
else authorization = 'Client-ID ' + clientId;
if (token) auth = 'Bearer ' + token;
else auth = 'Client-ID ' + clientId;

$.ajax({
url: 'https://api.imgur.com/3/image',
method: 'POST',
headers: {
Authorization: authorization,
Authorization: auth,
Accept: 'application/json'
},
data: {
Expand Down

0 comments on commit c322724

Please sign in to comment.