- {#if permissionError}
-
-
-
- {@html ErrorSVG}
-
- You don't have permission to use this app
-
-
- Ask your administrator to grant you access
-
-
-
- {:else if !$screenStore.activeLayout}
-
-
-
- {@html ErrorSVG}
-
- Something went wrong rendering your app
-
-
- Get in touch with support if this issue persists
-
-
-
- {:else if embedNoScreens}
-
-
-
- {@html ErrorSVG}
-
- This Budibase app is not publicly accessible
-
-
-
- {:else}
-
- {#key $screenStore.activeLayout._id}
-
- {/key}
-
-
-
-
-
-
+
+
+
+
+ {#if showDevTools}
+
{/if}
- {#if showDevTools}
-
+
+ {#if permissionError}
+
+
+
+ {@html ErrorSVG}
+
+ You don't have permission to use this app
+
+
+ Ask your administrator to grant you access
+
+
+
+ {:else if !$screenStore.activeLayout}
+
+
+
+ {@html ErrorSVG}
+
+ Something went wrong rendering your app
+
+
+ Get in touch with support if this issue
+ persists
+
+
+
+ {:else if embedNoScreens}
+
+
+
+ {@html ErrorSVG}
+
+ This Budibase app is not publicly accessible
+
+
+
+ {:else}
+
+ {#key $screenStore.activeLayout._id}
+
+ {/key}
+
+
+
+
+
+
+ {/if}
+
+ {#if showDevTools}
+
+ {/if}
+
+
+ {#if !$builderStore.inBuilder && $featuresStore.logoEnabled}
+
{/if}
- {#if !$builderStore.inBuilder && $featuresStore.logoEnabled}
-
- {/if}
-
-
{#if $appStore.isDevApp}
diff --git a/packages/client/src/components/context/EmbedProvider.svelte b/packages/client/src/components/context/EmbedProvider.svelte
index 16ba615700..5c402ec75d 100644
--- a/packages/client/src/components/context/EmbedProvider.svelte
+++ b/packages/client/src/components/context/EmbedProvider.svelte
@@ -6,7 +6,7 @@
function extractDomainFromUrl(url) {
const { hostname } = new URL(url)
- const parts = hostname.split('.');
+ const parts = hostname.split(".")
const tld = parts.slice(-2).join(".")
return tld
}
@@ -36,10 +36,8 @@
return () => window.removeEventListener("message", handleMessage)
})
-
-
-
\ No newline at end of file
+