From 372b801329584f92e942139011cdbb2d0c92085c Mon Sep 17 00:00:00 2001 From: papush Date: Thu, 29 Apr 2021 15:51:10 +0200 Subject: fix whitespace --- chrome/js/browserOverlay.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'chrome/js/browserOverlay.js') 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; -- cgit v1.2.3-70-g09d2