add offline handlers for devices

This commit is contained in:
Matias Alejo Garcia 2015-04-13 17:09:33 -03:00
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, // 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';

View file

@ -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();
} }