Permalink
Browse files

window not windows

  • Loading branch information...
1 parent 2011e86 commit 30e0accb59ae62e34b1fdea11f7e886088b1f9a4 @rpicard rpicard committed Mar 30, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 js/background.js
View
@@ -1,4 +1,4 @@
-windows.addEventListener('load', function() {
+window.addEventListener('load', function() {
// Get a random topic from Wikipedia
@@ -15,6 +15,8 @@ windows.addEventListener('load', function() {
function(data) {
return data.query.random.title;
});
+
+ return;
}
// Insert the query into the DOM
@@ -23,7 +25,7 @@ windows.addEventListener('load', function() {
$("#searchBox").val() = title;
- return 0;
+ return;
}
// Update the Speed Dial link
@@ -36,10 +38,10 @@ windows.addEventListener('load', function() {
sd.url = url;
- return 0;
+ return;
}
- return 1;
+ return;
}

0 comments on commit 30e0acc

Please sign in to comment.