mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 09:48:00 +01:00
Add "io" to the services cache.
This commit is contained in:
@@ -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