зеркало из https://github.com/mozilla/gecko-dev.git
Bug 777145 - B2G Network Manager: support navigator.onLine / online / offline events. r=philikon
This commit is contained in:
Родитель
49424a7b11
Коммит
6a6968a0ec
|
@ -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) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче