mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 23:47:58 +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._lastScreenWidth == null) {
|
||||
|
||||
let { isWindowPrivate } = PrivateBrowsingUtils;
|
||||
try {
|
||||
this.withSavedValues.call(PrivateBrowsingUtils,
|
||||
["isWindowPrivate"], function () {
|
||||
PrivateBrowsingUtils.isWindowPrivate = function () false;
|
||||
let { LightweightThemeConsumer } = Cu.import("resource://gre/modules/LightweightThemeConsumer.jsm", {});
|
||||
LightweightThemeConsumer.call(root._lightweightTheme, document);
|
||||
}
|
||||
catch (e) {
|
||||
util.reportError(e);
|
||||
}
|
||||
finally {
|
||||
PrivateBrowsingUtils.isWindowPrivate = isWindowPrivate;
|
||||
}
|
||||
|
||||
Cu.import("resource://gre/modules/LightweightThemeConsumer.jsm", {})
|
||||
.LightweightThemeConsumer.call(root._lightweightTheme, document);
|
||||
});
|
||||
}
|
||||
|
||||
dactyl.timeout(function () {
|
||||
|
||||
Reference in New Issue
Block a user