aboutsummaryrefslogtreecommitdiffstats
path: root/googlesuggest.js
diff options
context:
space:
mode:
Diffstat (limited to 'googlesuggest.js')
-rw-r--r--googlesuggest.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/googlesuggest.js b/googlesuggest.js
index 0036fcd..ff6da04 100644
--- a/googlesuggest.js
+++ b/googlesuggest.js
@@ -24,8 +24,9 @@ liberator.commands.addUserCommand(['google'],"Search Web sites with Google Sugge
xhr.send(null);
var response = window.eval(xhr.responseText)[1];
- for each (var r in response)
+ response.forEach(function(r) {
completionList.push([r,"Suggests"]);
+ });
return [0,completionList];
}
}