@capacitor/android 5.7.5 → 5.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -569,20 +569,7 @@ var nativeBridge = (function (exports) {
569
569
  value: xhr.method,
570
570
  writable: true,
571
571
  },
572
- readyState: {
573
- get: function () {
574
- var _a;
575
- return (_a = this._readyState) !== null && _a !== void 0 ? _a : 0;
576
- },
577
- set: function (val) {
578
- this._readyState = val;
579
- setTimeout(() => {
580
- this.dispatchEvent(new Event('readystatechange'));
581
- });
582
- },
583
- },
584
572
  });
585
- xhr.readyState = 0;
586
573
  const prototype = win.CapacitorWebXMLHttpRequest.prototype;
587
574
  const isProgressEventAvailable = () => typeof ProgressEvent !== 'undefined' &&
588
575
  ProgressEvent.prototype instanceof Event;
@@ -612,6 +599,20 @@ var nativeBridge = (function (exports) {
612
599
  this._url = createProxyUrl(this._url, win);
613
600
  return win.CapacitorWebXMLHttpRequest.open.call(this, method, this._url);
614
601
  }
602
+ Object.defineProperties(this, {
603
+ readyState: {
604
+ get: function () {
605
+ var _a;
606
+ return (_a = this._readyState) !== null && _a !== void 0 ? _a : 0;
607
+ },
608
+ set: function (val) {
609
+ this._readyState = val;
610
+ setTimeout(() => {
611
+ this.dispatchEvent(new Event('readystatechange'));
612
+ });
613
+ },
614
+ },
615
+ });
615
616
  setTimeout(() => {
616
617
  this.dispatchEvent(new Event('loadstart'));
617
618
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/android",
3
- "version": "5.7.5",
3
+ "version": "5.7.6",
4
4
  "description": "Capacitor: Cross-platform apps with JavaScript and the web",
5
5
  "homepage": "https://capacitorjs.com",
6
6
  "author": "Ionic Team <hi@ionic.io> (https://ionic.io)",