projecte_ionic/node_modules/zone.js/fesm2015/zone-patch-cordova.min.js
2022-02-09 18:30:03 +01:00

13 lines
1,013 B
JavaScript
Executable file

"use strict";
/**
* @license Angular v12.0.0-next.0
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/Zone.__load_patch("cordova",(e,o,r)=>{if(e.cordova){const t="cordova.exec.success",a="cordova.exec.error",c="function",d=r.patchMethod(e.cordova,"exec",()=>function(e,r){return r.length>0&&typeof r[0]===c&&(r[0]=o.current.wrap(r[0],t)),r.length>1&&typeof r[1]===c&&(r[1]=o.current.wrap(r[1],a)),d.apply(e,r)})}}),Zone.__load_patch("cordova.FileReader",(e,o)=>{e.cordova&&void 0!==e.FileReader&&document.addEventListener("deviceReady",()=>{const r=e.FileReader;["abort","error","load","loadstart","loadend","progress"].forEach(e=>{const t=o.__symbol__("ON_PROPERTY"+e);Object.defineProperty(r.prototype,t,{configurable:!0,get:function(){return this._realReader&&this._realReader[t]}})})})});