1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 15:57:57 +01:00

Add 'const service'

This commit is contained in:
Kris Maglione
2008-12-17 16:41:54 -05:00
parent 1ffb5e90ad
commit 6a04a6e7cf
12 changed files with 108 additions and 186 deletions

View File

@@ -418,16 +418,13 @@ const config = { //{{{
{
setter: function (value)
{
const ioService = Cc['@mozilla.org/network/io-service;1'].getService(Ci.nsIIOService2);
ioService.offline = !value;
gPrefService.setBoolPref("browser.offline", ioService.offline);
gPrefService.setBoolPref("browser.offline", service.io.offline);
return value;
},
getter: function ()
{
return Cc['@mozilla.org/network/io-service;1'].getService(Ci.nsIIOService2).offline;
return service.io.offline;
}
});