add offline handlers for devices
This commit is contained in:
parent
6186a70a50
commit
2883932bc9
2 changed files with 6 additions and 6 deletions
|
|
@ -33,9 +33,9 @@ angular.element(document).ready(function() {
|
||||||
|
|
||||||
// We are not emitting here, since when the BWS socket reconnects,
|
// We are not emitting here, since when the BWS socket reconnects,
|
||||||
// update will be triggered
|
// update will be triggered
|
||||||
// document.addEventListener('offline', function() {
|
document.addEventListener('offline', function() {
|
||||||
// window.location = '#/cordova/offline';
|
window.location = '#/cordova/offline';
|
||||||
// }, false);
|
}, false);
|
||||||
//
|
//
|
||||||
// document.addEventListener("online", function() {
|
// document.addEventListener("online", function() {
|
||||||
// window.location = '#/cordoba/online';
|
// window.location = '#/cordoba/online';
|
||||||
|
|
|
||||||
|
|
@ -436,9 +436,9 @@ angular
|
||||||
// case 'online':
|
// case 'online':
|
||||||
// // $scope.$emit('Local/Online');
|
// // $scope.$emit('Local/Online');
|
||||||
// break;
|
// break;
|
||||||
// case 'offline':
|
case 'offline':
|
||||||
// // $scope.$emit('Local/Offline');
|
$scope.$emit('Local/Offline');
|
||||||
// break;
|
break;
|
||||||
};
|
};
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue