31d6c1a207450d25a4db416a9c6d9a26c2c1a9b0e738dcd2787aeac54246a742.json 3.3 KB

1
  1. {"ast":null,"code":"/**\n *\n */\nexport function checkReady() {\n if (typeof process === 'undefined') {\n var win_1 = typeof window !== 'undefined' ? window : {};\n var DEVICE_READY_TIMEOUT_1 = 5000;\n // To help developers using cordova, we listen for the device ready event and\n // log an error if it didn't fire in a reasonable amount of time. Generally,\n // when this happens, developers should remove and reinstall plugins, since\n // an inconsistent plugin is often the culprit.\n var before_1 = Date.now();\n var didFireReady_1 = false;\n win_1.document.addEventListener('deviceready', function () {\n console.log(\"Ionic Native: deviceready event fired after \" + (Date.now() - before_1) + \" ms\");\n didFireReady_1 = true;\n });\n setTimeout(function () {\n if (!didFireReady_1 && win_1.cordova) {\n console.warn(\"Ionic Native: deviceready did not fire within \" + DEVICE_READY_TIMEOUT_1 + \"ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.\");\n }\n }, DEVICE_READY_TIMEOUT_1);\n }\n}","map":{"version":3,"names":["checkReady","process","win_1","window","DEVICE_READY_TIMEOUT_1","before_1","Date","now","didFireReady_1","document","addEventListener","console","log","setTimeout","cordova","warn"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@awesome-cordova-plugins/core/bootstrap.js"],"sourcesContent":["/**\n *\n */\nexport function checkReady() {\n if (typeof process === 'undefined') {\n var win_1 = typeof window !== 'undefined' ? window : {};\n var DEVICE_READY_TIMEOUT_1 = 5000;\n // To help developers using cordova, we listen for the device ready event and\n // log an error if it didn't fire in a reasonable amount of time. Generally,\n // when this happens, developers should remove and reinstall plugins, since\n // an inconsistent plugin is often the culprit.\n var before_1 = Date.now();\n var didFireReady_1 = false;\n win_1.document.addEventListener('deviceready', function () {\n console.log(\"Ionic Native: deviceready event fired after \" + (Date.now() - before_1) + \" ms\");\n didFireReady_1 = true;\n });\n setTimeout(function () {\n if (!didFireReady_1 && win_1.cordova) {\n console.warn(\"Ionic Native: deviceready did not fire within \" + DEVICE_READY_TIMEOUT_1 + \"ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.\");\n }\n }, DEVICE_READY_TIMEOUT_1);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,SAASA,UAAUA,CAAA,EAAG;EACzB,IAAI,OAAOC,OAAO,KAAK,WAAW,EAAE;IAChC,IAAIC,KAAK,GAAG,OAAOC,MAAM,KAAK,WAAW,GAAGA,MAAM,GAAG,CAAC,CAAC;IACvD,IAAIC,sBAAsB,GAAG,IAAI;IACjC;IACA;IACA;IACA;IACA,IAAIC,QAAQ,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC;IACzB,IAAIC,cAAc,GAAG,KAAK;IAC1BN,KAAK,CAACO,QAAQ,CAACC,gBAAgB,CAAC,aAAa,EAAE,YAAY;MACvDC,OAAO,CAACC,GAAG,CAAC,8CAA8C,IAAIN,IAAI,CAACC,GAAG,CAAC,CAAC,GAAGF,QAAQ,CAAC,GAAG,KAAK,CAAC;MAC7FG,cAAc,GAAG,IAAI;IACzB,CAAC,CAAC;IACFK,UAAU,CAAC,YAAY;MACnB,IAAI,CAACL,cAAc,IAAIN,KAAK,CAACY,OAAO,EAAE;QAClCH,OAAO,CAACI,IAAI,CAAC,gDAAgD,GAAGX,sBAAsB,GAAG,0HAA0H,CAAC;MACxN;IACJ,CAAC,EAAEA,sBAAsB,CAAC;EAC9B;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}