From c36abb47cffea3d754fd243b321f2ae50518c297 Mon Sep 17 00:00:00 2001 From: tom <108757230+tom-quiltt@users.noreply.github.com> Date: Wed, 20 Mar 2024 09:15:07 -0700 Subject: [PATCH] Remove RN about:srcdoc warning (#215) * Remove RN about:srcdoc warning Plaid for some reason, will attempt to set window.location = about:srcdoc The way I used to filter it seems to produce a warning So I just let existing requestHandler, handleQuilttEvent and handleOAuthUrl to handle. Also remove an unnecessary HB reporting * changeset * Remove debug log --- .changeset/pink-horses-thank.md | 8 ++++++++ packages/react-native/src/components/QuilttConnector.tsx | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .changeset/pink-horses-thank.md diff --git a/.changeset/pink-horses-thank.md b/.changeset/pink-horses-thank.md new file mode 100644 index 00000000..21412cfe --- /dev/null +++ b/.changeset/pink-horses-thank.md @@ -0,0 +1,8 @@ +--- +"@quiltt/react-native": patch +"@quiltt/core": patch +"@quiltt/react": patch +"@quiltt/examples-nextjs": patch +--- + +Remove React Native SDK about:srcdoc warning diff --git a/packages/react-native/src/components/QuilttConnector.tsx b/packages/react-native/src/components/QuilttConnector.tsx index dbd88373..744894d2 100644 --- a/packages/react-native/src/components/QuilttConnector.tsx +++ b/packages/react-native/src/components/QuilttConnector.tsx @@ -150,8 +150,6 @@ const QuilttConnector = ({ (url: URL) => { if (isQuilttEvent(url)) return false if (url.protocol !== 'https:') { - const err = new Error(`Invalid url leaked ${url.href}`) - errorReporter.send(err) return false } return allowedListUrl.some((href) => url.href.includes(href)) @@ -252,7 +250,9 @@ const QuilttConnector = ({