add offline handlers for devices

This commit is contained in:
Matias Alejo Garcia 2015-04-13 17:09:33 -03:00
parent 6186a70a50
commit 2883932bc9
2 changed files with 6 additions and 6 deletions

View File

@ -33,9 +33,9 @@ angular.element(document).ready(function() {
// We are not emitting here, since when the BWS socket reconnects,
// update will be triggered
// document.addEventListener('offline', function() {
// window.location = '#/cordova/offline';
// }, false);
document.addEventListener('offline', function() {
window.location = '#/cordova/offline';
}, false);
//
// document.addEventListener("online", function() {
// window.location = '#/cordoba/online';

View File

@ -436,9 +436,9 @@ angular
// case 'online':
// // $scope.$emit('Local/Online');
// break;
// case 'offline':
// // $scope.$emit('Local/Offline');
// break;
case 'offline':
$scope.$emit('Local/Offline');
break;
};
go.walletHome();
}