Bug 777145 - B2G Network Manager: support navigator.onLine / online / offline events. r=philikon

This commit is contained in:
Hubert Figuière 2012-07-27 15:21:23 -07:00
Родитель 49424a7b11
Коммит 6a6968a0ec
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -180,6 +180,7 @@ NetworkManager.prototype = {
if (this.active) { if (this.active) {
this.setDefaultRouteAndDNS(oldActive); this.setDefaultRouteAndDNS(oldActive);
} }
Services.io.offline = !this.active;
}, },
setDefaultRouteAndDNS: function setDefaultRouteAndDNS(oldInterface) { setDefaultRouteAndDNS: function setDefaultRouteAndDNS(oldInterface) {