Skip to content

Commit

Permalink
fix: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
mzndako committed Feb 20, 2025
1 parent 8884854 commit 948b911
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/WebView.android.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
defaultRenderLoading,
useWebWiewLogic,
versionPasses,
removeHttpsFromOrigins,
} from './WebViewShared';
import {
AndroidWebViewProps,
Expand Down
1 change: 0 additions & 1 deletion src/WebView.ios.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
defaultRenderLoading,
useWebWiewLogic,
versionPasses,
removeHttpsFromOrigins,
} from './WebViewShared';
import {
IOSWebViewProps,
Expand Down
4 changes: 0 additions & 4 deletions src/WebViewShared.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,3 @@ export const versionPasses = (version: string | undefined, minimum: string | und
}
return true // equals
}

export const removeHttpsFromOrigins = (whitelist: string[]) => {
return whitelist.map((origin) => origin.replace('https://', ''))
}

0 comments on commit 948b911

Please sign in to comment.