diff options
author | papush | 2021-04-29 15:51:10 +0200 |
---|---|---|
committer | papush | 2021-04-29 15:51:51 +0200 |
commit | 372b801329584f92e942139011cdbb2d0c92085c (patch) | |
tree | d14ed6c34c07ea240743d54e3f9d0d4ac7650309 /chrome/js/browserOverlay.js | |
parent | ff4d941f195f6359ee9715d16832c6af749a9045 (diff) |
fix whitespace
Diffstat (limited to 'chrome/js/browserOverlay.js')
-rw-r--r-- | chrome/js/browserOverlay.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/js/browserOverlay.js b/chrome/js/browserOverlay.js index ed1ab73..bfaff90 100644 --- a/chrome/js/browserOverlay.js +++ b/chrome/js/browserOverlay.js @@ -3,7 +3,7 @@ Components.utils.import("chrome://redirector/content/js/redirector.js"); var RedirectorOverlay = { - strings : null, + strings : null, prefs : null, onLoad : function(event) { @@ -12,16 +12,16 @@ var RedirectorOverlay = { // initialization code document.getElementById('contentAreaContextMenu') .addEventListener("popupshowing", function(e) { RedirectorOverlay.showContextMenu(e); }, false); - + this.strings = document.getElementById("redirector-strings"); this.prefs = new RedirectorPrefs(); this.changedPrefs(this.prefs); - this.prefs.addListener(this); + this.prefs.addListener(this); document.addEventListener('keypress', function(event) { if ((event.charCode == 114) && event.altKey) { //alt+r RedirectorOverlay.toggleEnabled(); } - }, true); + }, true); } catch(e) { if (this.strings) { alert(this.strings.getString("initError") + "\n\n" + e); @@ -30,7 +30,7 @@ var RedirectorOverlay = { } } }, - + onUnload : function(event) { this.prefs.dispose(); Redirector.debug("Finished cleanup"); @@ -50,7 +50,7 @@ var RedirectorOverlay = { document.getElementById('redirector-status').hidden = !prefs.showStatusBarIcon; document.getElementById('redirector-context').hidden = !prefs.showContextMenu; }, - + showContextMenu : function(event) { if (gContextMenu.onLink) { document.getElementById("redirector-context").label = this.strings.getString('addLinkUrl'); @@ -65,9 +65,9 @@ var RedirectorOverlay = { redirect.redirectUrl = gContextMenu.link.toString(); } - gBrowser.selectedTab = gBrowser.addTab("chrome://redirector/content/redirector.html"); + gBrowser.selectedTab = gBrowser.addTab("chrome://redirector/content/redirector.html"); }, - + onMenuItemCommand: function(event) { this.openSettings(); }, @@ -77,9 +77,9 @@ var RedirectorOverlay = { }, openSettings : function() { - gBrowser.selectedTab = gBrowser.addTab("chrome://redirector/content/redirector.html"); + gBrowser.selectedTab = gBrowser.addTab("chrome://redirector/content/redirector.html"); }, - + statusBarClick : function(event) { var LEFT = 0, RIGHT = 2; |