We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75f088d commit 144b88bCopy full SHA for 144b88b
docs/API.md
@@ -67,10 +67,11 @@ where `icon` contains the following fields:
67
## Examples
68
### Example: Getting the icon
69
```js
70
-ddg.query("Hawaii").then(function(res) {
+ddg.result("Hawaii").then(function(res) {
71
var img = document.createElement("img");
72
img.src = res.icon.src;
73
img.style.width = res.icon.width + "px";
74
img.style.height = res.icon.height + "px";
75
+ document.body.appendChild(img);
76
});
77
```
0 commit comments