This commit is contained in:
Martin McKeaveney 2024-09-02 08:58:28 +01:00
parent d5f58fc6c8
commit 9924ad20e0
2 changed files with 76 additions and 77 deletions

View File

@ -214,7 +214,8 @@
Something went wrong rendering your app Something went wrong rendering your app
</Heading> </Heading>
<Body size="S"> <Body size="S">
Get in touch with support if this issue persists Get in touch with support if this issue
persists
</Body> </Body>
</Layout> </Layout>
</div> </div>

View File

@ -6,7 +6,7 @@
function extractDomainFromUrl(url) { function extractDomainFromUrl(url) {
const { hostname } = new URL(url) const { hostname } = new URL(url)
const parts = hostname.split('.'); const parts = hostname.split(".")
const tld = parts.slice(-2).join(".") const tld = parts.slice(-2).join(".")
return tld return tld
} }
@ -36,10 +36,8 @@
return () => window.removeEventListener("message", handleMessage) return () => window.removeEventListener("message", handleMessage)
}) })
</script> </script>
<Provider key="embed" {data}> <Provider key="embed" {data}>
<slot /> <slot />
</Provider> </Provider>