mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 03:42:31 +02:00
Add "io" to the services cache.
This commit is contained in:
1 parent
49e0c091c1
commit
698cdb19c2
5 files changed
+14
-15
No files matched your search
@@ -430,16 +430,12 @@ const config = { //{{{
|
||||
{
|
||||
setter: function (value)
|
||||
{
|
||||
const ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService2);
|
||||
const ioService = services.get("io");
|
||||
ioService.offline = !value;
|
||||
gPrefService.setBoolPref("browser.offline", ioService.offline);
|
||||
return value;
|
||||
},
|
||||
getter: function ()
|
||||
{
|
||||
const ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService2);
|
||||
return !ioService.offline;
|
||||
}
|
||||
getter: function () !services.get("io").offline
|
||||
});
|
||||
|
||||
options.add(["titlestring"],
|
||||
|
||||
Reference in new issue
Block a user