Front end of the Slack clone application.

bootstrap.js 1000B

12345678910111213141516171819
  1. export function checkReady() {
  2. var DEVICE_READY_TIMEOUT = 5000;
  3. // To help developers using cordova, we listen for the device ready event and
  4. // log an error if it didn't fire in a reasonable amount of time. Generally,
  5. // when this happens, developers should remove and reinstall plugins, since
  6. // an inconsistent plugin is often the culprit.
  7. var before = Date.now();
  8. var didFireReady = false;
  9. document.addEventListener('deviceready', function () {
  10. console.log("Ionic Native: deviceready event fired after " + (Date.now() - before) + " ms");
  11. didFireReady = true;
  12. });
  13. setTimeout(function () {
  14. if (!didFireReady && !!window.cordova) {
  15. console.warn("Ionic 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.");
  16. }
  17. }, DEVICE_READY_TIMEOUT);
  18. }
  19. //# sourceMappingURL=bootstrap.js.map