1
0
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:
Doug Kearns
2009-01-05 21:47:49 +11:00
parent 49e0c091c1
commit 698cdb19c2
5 changed files with 14 additions and 15 deletions

View File

@@ -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"],