From 57145a9ab0953af41d9a8438830a1fe07f07ff9f Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Thu, 23 Jul 2015 05:03:55 +0200 Subject: [PATCH] some cleanups --- .gitignore | 3 ++- chrome/content/overlay.js | 16 ++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index b25c15b..f323bdc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -*~ +*~i +*.xpi diff --git a/chrome/content/overlay.js b/chrome/content/overlay.js index 8655f30..e6d5f95 100644 --- a/chrome/content/overlay.js +++ b/chrome/content/overlay.js @@ -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);