Disabling unnecessary online/offline events for mobile/desktop

This commit is contained in:
Gustavo Maximiliano Cortez 2015-06-26 11:09:35 -03:00
commit a2f2451ad9
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 13 additions and 17 deletions

View file

@ -26,12 +26,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;