Merge pull request #2915 from cmgustavo/bug/reconnect-02

Disabling unnecessary online/offline events for mobile/desktop
This commit is contained in:
Matias Alejo Garcia 2015-06-28 09:11:32 -03:00
commit 801ad1b798
6 changed files with 5 additions and 42 deletions

View file

@ -35,12 +35,6 @@ angular.element(document).ready(function() {
}, 100);
}, false);
// We are not emitting here, since when the BWS socket reconnects,
// update will be triggered
document.addEventListener('offline', function() {
window.location = '#/cordova/offline';
}, false);
// Back button event
document.addEventListener('backbutton', function() {
var loc = window.location;