We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7818d81 commit 490514dCopy full SHA for 490514d
src/WebViewShared.tsx
@@ -45,7 +45,7 @@ const _passesWhitelist = (
45
const { href, origin } = new URL(url)
46
47
if (origin && origin !== 'null') {
48
- return matchWithRegexList(compiledWhitelist, origin)
+ return matchWithRegexList(compiledWhitelist, origin);
49
}
50
51
return matchWithRegexList(compiledWhitelist, href)
@@ -270,7 +270,6 @@ export const useWebWiewLogic = ({
270
271
const onMessage = useCallback((event: WebViewMessageEvent) => {
272
const { nativeEvent } = event;
273
-
274
if (!passesWhitelistUse(nativeEvent.url)) return;
275
276
// TODO: can/should we perform any other validation?
0 commit comments