@capacitor/ios 5.4.1 → 5.4.2

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.
@@ -469,8 +469,7 @@ var nativeBridge = (function (exports) {
469
469
  // fetch patch
470
470
  window.fetch = async (resource, options) => {
471
471
  const request = new Request(resource, options);
472
- if (!(request.url.startsWith('http:') ||
473
- request.url.startsWith('https:'))) {
472
+ if (request.url.startsWith(`${cap.getServerUrl()}/`)) {
474
473
  return win.CapacitorWebFetch(resource, options);
475
474
  }
476
475
  const tag = `CapacitorHttp fetch ${Date.now()} ${resource}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/ios",
3
- "version": "5.4.1",
3
+ "version": "5.4.2",
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)",