1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-23 13:45:46 +01:00

[PWPBM] Make Personas work in private windows.

This commit is contained in:
Kris Maglione
2013-04-26 21:09:23 -07:00
parent a06e8f278d
commit 6b84489489
3 changed files with 28 additions and 3 deletions

View File

@@ -167,8 +167,7 @@ var sessionGlobal = Cu.import("resource://gre/modules/Services.jsm", {})
var Storage = Module("Storage", {
Local: function Local(dactyl, modules, window) ({
init: function init() {
this.privateMode = window.document.documentElement
.getAttribute("privatebrowsingmode");
this.privateMode = PrivateBrowsingUtils.isWindowPrivate(window);
}
}),