Skip to content

Commit

Permalink
fix: remove unnecessary template string
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwolz committed Jun 20, 2024
1 parent cc099f6 commit 17f213b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/native-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const isRelativeOrProxyUrl = (url: string | undefined): boolean =>
const createProxyUrl = (url: string, win: WindowCapacitor): string => {
if (isRelativeOrProxyUrl(url)) return url;
const bridgeUrl = new URL(win.Capacitor?.getServerUrl() ?? '');
bridgeUrl.pathname = `${CAPACITOR_HTTP_INTERCEPTOR}`;
bridgeUrl.pathname = CAPACITOR_HTTP_INTERCEPTOR;
// URLSearchParams `append()` method will automatically percent encode the url
bridgeUrl.searchParams.append(CAPACITOR_HTTP_INTERCEPTOR_URL_PARAM, url);

Expand Down

0 comments on commit 17f213b

Please sign in to comment.