mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
[Pale-Moon] Issue #1717 - Whitespace Cleanup
This commit is contained in:
parent
024f61bf38
commit
92eed10c3b
1 changed files with 9 additions and 9 deletions
|
|
@ -100,7 +100,7 @@ var padlock_PadLock =
|
|||
highlight_urlbar = false;
|
||||
}
|
||||
} catch(ex) {}
|
||||
|
||||
|
||||
let ub = document.getElementById("urlbar");
|
||||
if (ub) {
|
||||
// Only call if URL bar is present.
|
||||
|
|
@ -116,15 +116,15 @@ var padlock_PadLock =
|
|||
padlock_PadLock.setPadlockLevel("padlock-ib-left", level);
|
||||
padlock_PadLock.setPadlockLevel("padlock-ub-right", level);
|
||||
} catch(e) {}
|
||||
|
||||
|
||||
padlock_PadLock.setPadlockLevel("padlock-sb", level);
|
||||
padlock_PadLock.setPadlockLevel("padlock-tab", level);
|
||||
},
|
||||
|
||||
|
||||
setPadlockLevel: function(item, level) {
|
||||
let secbut = document.getElementById(item);
|
||||
var sectooltip = "";
|
||||
|
||||
|
||||
if (level) {
|
||||
secbut.setAttribute("level", level);
|
||||
secbut.hidden = false;
|
||||
|
|
@ -170,12 +170,12 @@ var padlock_PadLock =
|
|||
}
|
||||
secbut.setAttribute("tooltiptext", sectooltip);
|
||||
},
|
||||
|
||||
|
||||
prefbranch : null,
|
||||
|
||||
|
||||
onLoad: function() {
|
||||
gBrowser.addProgressListener(padlock_PadLock);
|
||||
|
||||
|
||||
var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService);
|
||||
padlock_PadLock.prefbranch = prefService.getBranch("browser.padlock.");
|
||||
padlock_PadLock.prefbranch.QueryInterface(Components.interfaces.nsIPrefBranch2);
|
||||
|
|
@ -262,7 +262,7 @@ var padlock_PadLock =
|
|||
document.getElementById("padlock-ib-left").setAttribute("padshow", padshow);
|
||||
document.getElementById("padlock-ub-right").setAttribute("padshow", padshow);
|
||||
} catch(e) {}
|
||||
|
||||
|
||||
document.getElementById("padlock-sb").setAttribute("padshow", padshow);
|
||||
document.getElementById("padlock-tab").setAttribute("padshow", padshow);
|
||||
|
||||
|
|
@ -271,7 +271,7 @@ var padlock_PadLock =
|
|||
document.getElementById("padlock-ib-left").setAttribute("padstyle", padstyle);
|
||||
document.getElementById("padlock-ub-right").setAttribute("padstyle", padstyle);
|
||||
} catch(e) {}
|
||||
|
||||
|
||||
document.getElementById("padlock-sb").setAttribute("padstyle", padstyle);
|
||||
document.getElementById("padlock-tab").setAttribute("padstyle", padstyle);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue