@capacitor/ios 5.7.3 → 5.7.4
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.
|
@@ -145,13 +145,10 @@ var nativeBridge = (function (exports) {
|
|
|
145
145
|
const proxyUrl = new URL(url);
|
|
146
146
|
const bridgeUrl = new URL((_b = (_a = win.Capacitor) === null || _a === void 0 ? void 0 : _a.getServerUrl()) !== null && _b !== void 0 ? _b : '');
|
|
147
147
|
const isHttps = proxyUrl.protocol === 'https:';
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
proxyUrl.port = bridgeUrl.port;
|
|
153
|
-
proxyUrl.pathname = `${isHttps ? CAPACITOR_HTTPS_INTERCEPTOR : CAPACITOR_HTTP_INTERCEPTOR}/${originalHost}${originalPathname}`;
|
|
154
|
-
return proxyUrl.toString();
|
|
148
|
+
bridgeUrl.search = proxyUrl.search;
|
|
149
|
+
bridgeUrl.hash = proxyUrl.hash;
|
|
150
|
+
bridgeUrl.pathname = `${isHttps ? CAPACITOR_HTTPS_INTERCEPTOR : CAPACITOR_HTTP_INTERCEPTOR}/${encodeURIComponent(proxyUrl.host)}${proxyUrl.pathname}`;
|
|
151
|
+
return bridgeUrl.toString();
|
|
155
152
|
};
|
|
156
153
|
const initBridge = (w) => {
|
|
157
154
|
const getPlatformId = (win) => {
|
package/package.json
CHANGED