24 lines
1007 B
JavaScript
Raw Normal View History

2015-11-25 11:44:58 -06:00
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
2015-11-29 16:30:15 -06:00
var DEVICE_READY_TIMEOUT = 2000;
2015-11-29 21:55:18 -06:00
__export(require('./plugins/actionsheet'));
2015-11-30 11:09:50 -06:00
__export(require('./plugins/ble'));
2015-11-29 21:55:18 -06:00
__export(require('./plugins/camera'));
2015-11-30 11:09:50 -06:00
__export(require('./plugins/contacts'));
2015-11-29 21:55:18 -06:00
__export(require('./plugins/device'));
2015-11-30 12:34:54 -06:00
__export(require('./plugins/geolocation'));
2015-11-29 21:55:18 -06:00
__export(require('./plugins/statusbar'));
2015-11-28 16:24:38 -06:00
__export(require('./plugins/toast'));
2015-11-30 13:27:25 -06:00
var before = +new Date;
2015-11-29 16:30:15 -06:00
var didFireReady = false;
2015-11-30 13:27:25 -06:00
document.addEventListener('deviceready', function () {
console.log('DEVICE READY FIRED AFTER', (+new Date - before), 'ms');
2015-11-29 16:30:15 -06:00
didFireReady = true;
});
setTimeout(function () {
2015-11-29 17:20:11 -06:00
if (!didFireReady && window.cordova) {
2015-11-29 16:30:15 -06:00
console.warn('Native: deviceready did not fire within ' + DEVICE_READY_TIMEOUT + 'ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.');
}
}, DEVICE_READY_TIMEOUT);
2015-11-30 12:34:54 -06:00
//# sourceMappingURL=index.js.map