fix(network): isOnline. See #336

This commit is contained in:
Max Lynch
2015-10-30 06:50:44 -05:00
parent 636910aee1
commit ca76ffddec

View File

@ -38,6 +38,8 @@ export class Network {
this.ifPlugin(() => {
var networkState = navigator.connection.type;
return networkState !== window.Connection.UNKNOWN && networkState !== window.Connection.NONE;
}, () => {
return navigator.onLine
});
}
}