Browse Source

[Pale-Moon] Issue #1737 - Address nits.

pull/24/head
Pale Moon 2 years ago committed by Roy Tam
parent
commit
b294e4f2ff
  1. 2
      application/palemoon/base/content/browser-fullScreen.js
  2. 6
      application/palemoon/base/content/browser.js

2
application/palemoon/base/content/browser-fullScreen.js

@ -172,7 +172,7 @@ var FullScreen = {
if (aEvent.keyCode == aEvent.DOM_VK_ESCAPE) {
FullScreen.hideNavToolbox(true);
} else if (aEvent.keyCode == aEvent.DOM_VK_F6) {
// F6 is another shortcut to the address bar, but its not covered in OpenLocation()
// F6 is another shortcut to the address bar, but its not covered in OpenLocation()
FullScreen.showNavToolbox();
}
},

6
application/palemoon/base/content/browser.js

@ -5710,8 +5710,7 @@ var BrowserOffline = {
// Stop automatic management of the offline status
try {
ioService.manageOfflineStatus = false;
} catch(ex) {
}
} catch(ex) {}
if (!ioService.offline && !this._canGoOffline()) {
this._updateOfflineUI(false);
@ -7524,8 +7523,7 @@ var ToolbarIconColor = {
var colorChangedPref = false;
try {
colorChangedPref = gPrefService.getBoolPref("ui.colorChanged");
} catch(e) {
}
} catch(e) {}
// if pref indicates change, call inferFromText() on a small delay
if (colorChangedPref == true) {
setTimeout(() => { this.inferFromText(); }, 300);

Loading…
Cancel
Save