Fixing barcode scanner (Android) with new cordova plugin

This commit is contained in:
Matias Pando 2015-04-17 12:23:40 -03:00
commit 99d2cdb9b7

View file

@ -25,7 +25,9 @@ angular.element(document).ready(function() {
}, false); }, false);
document.addEventListener('resume', function() { document.addEventListener('resume', function() {
if (!window.ignoreMobilePause) {
window.location = '#/cordova/resume'; window.location = '#/cordova/resume';
}
setTimeout(function() { setTimeout(function() {
window.ignoreMobilePause = false; window.ignoreMobilePause = false;
}, 100); }, 100);