@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 (
|
|
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