1
0
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:
Kris Maglione
2013-04-26 22:12:57 -07:00
parent 6b84489489
commit a2a3436241

View File

@@ -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 () {