When i unplug my dsl cable and plug it again, my ion-refresher doesnt work properly i dunno why.
I want to stop it while internet is OFFLINE and when internet is ON user can do it.
Here's the code :
doRefresh(refresher) {
if (this.isOnline) {
this.refreshData();
this.getAssignedWarrents()
.then(() => {
console.log('Refresher completed.');
refresher.complete();
});
}else {
refresher.complete();
}
}