mirror of https://github.com/BTCPrivate/copay.git
add offline handlers for devices
This commit is contained in:
parent
6186a70a50
commit
2883932bc9
|
@ -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';
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue