Skip to content

Commit

Permalink
Fixed new API glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Zozman committed Oct 25, 2014
1 parent 0ee1c8a commit a073cbb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Binary file modified dist/theGifOracle.crx
Binary file not shown.
5 changes: 2 additions & 3 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ function searchOracle(info)
type: "GET",
dataType : "json",
async: false,
success: function(result, textStatus, jqXHR)
success: function(returned, textStatus, jqXHR)
{
// Attempt to get a result URL
try {
result = result.data.data.image_url;
result = returned.data.image_url;
// If a URLis ot returned, set null
} catch (Exception) {
result = null;
Expand All @@ -36,7 +36,6 @@ function searchOracle(info)
result = null;
}
});

return result;
}

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"background": {
"scripts": ["jquery.min.js", "background.js"]
},
"version": "1.0.1",
"version": "1.0.2",
"omnibox": { "keyword" : "oracle" },
"description": "Select a word and retrieve a random GIF of it with the might of the ORACLE! Powered by the Giphy API.",
"permissions": [ "contextMenus", "tabs", "notifications", "clipboardWrite", "http://*/*", "https://*/*" ],
Expand Down
Binary file modified theGifOracle.zip
Binary file not shown.

0 comments on commit a073cbb

Please sign in to comment.