some cleanups

This commit is contained in:
Johannes Findeisen 2015-07-23 05:03:55 +02:00
commit 57145a9ab0
2 changed files with 10 additions and 9 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
*~
*~i
*.xpi

View file

@ -1,7 +1,7 @@
var leo_search = {
onLoad: function() {
this.initialized = true;
this.strings = document.getElementById("leo_search-strings");
var leo_search = {
onLoad: function() {
this.initialized = true;
this.strings = document.getElementById("leo_search-strings");
},
onSearchCommand: function(e, lang, sitelang) {
var query = window._content.window.getSelection();
@ -10,7 +10,7 @@ var leo_search = {
var myURL = "http://dict.leo.org/" + lang + "de?lang=" + sitelang + "&search=" + query;
openNewTabWith(myURL, null, null, true);
}
}
};
window.addEventListener("load", leo_search.onLoad, false);
}
};
window.addEventListener("load", leo_search.onLoad, false);