mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 23:27:59 +01:00
[PWPBM] Minor code cleanup.
This commit is contained in:
@@ -1884,18 +1884,13 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
&& root._lightweightTheme
|
&& root._lightweightTheme
|
||||||
&& root._lightweightTheme._lastScreenWidth == null) {
|
&& root._lightweightTheme._lastScreenWidth == null) {
|
||||||
|
|
||||||
let { isWindowPrivate } = PrivateBrowsingUtils;
|
this.withSavedValues.call(PrivateBrowsingUtils,
|
||||||
try {
|
["isWindowPrivate"], function () {
|
||||||
PrivateBrowsingUtils.isWindowPrivate = function () false;
|
PrivateBrowsingUtils.isWindowPrivate = function () false;
|
||||||
let { LightweightThemeConsumer } = Cu.import("resource://gre/modules/LightweightThemeConsumer.jsm", {});
|
|
||||||
LightweightThemeConsumer.call(root._lightweightTheme, document);
|
Cu.import("resource://gre/modules/LightweightThemeConsumer.jsm", {})
|
||||||
}
|
.LightweightThemeConsumer.call(root._lightweightTheme, document);
|
||||||
catch (e) {
|
});
|
||||||
util.reportError(e);
|
|
||||||
}
|
|
||||||
finally {
|
|
||||||
PrivateBrowsingUtils.isWindowPrivate = isWindowPrivate;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dactyl.timeout(function () {
|
dactyl.timeout(function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user