diff --git a/src/routes/(app)/workspace/models/create/+page.svelte b/src/routes/(app)/workspace/models/create/+page.svelte index 9b351e63e..86b65f708 100644 --- a/src/routes/(app)/workspace/models/create/+page.svelte +++ b/src/routes/(app)/workspace/models/create/+page.svelte @@ -138,13 +138,9 @@ onMount(async () => { window.addEventListener('message', async (event) => { if ( - ![ - 'https://ollamahub.com', - 'https://www.ollamahub.com', - 'https://openwebui.com', - 'https://www.openwebui.com', - 'http://localhost:5173' - ].includes(event.origin) + !['https://openwebui.com', 'https://www.openwebui.com', 'http://localhost:5173'].includes( + event.origin + ) ) return; diff --git a/src/routes/(app)/workspace/prompts/create/+page.svelte b/src/routes/(app)/workspace/prompts/create/+page.svelte index b52e089b6..67cbd3712 100644 --- a/src/routes/(app)/workspace/prompts/create/+page.svelte +++ b/src/routes/(app)/workspace/prompts/create/+page.svelte @@ -57,13 +57,9 @@ onMount(async () => { window.addEventListener('message', async (event) => { if ( - ![ - 'https://ollamahub.com', - 'https://www.ollamahub.com', - 'https://openwebui.com', - 'https://www.openwebui.com', - 'http://localhost:5173' - ].includes(event.origin) + !['https://openwebui.com', 'https://www.openwebui.com', 'http://localhost:5173'].includes( + event.origin + ) ) return; const prompt = JSON.parse(event.data); diff --git a/src/routes/prompts/create/+page.svelte b/src/routes/prompts/create/+page.svelte deleted file mode 100644 index d438cae3d..000000000 --- a/src/routes/prompts/create/+page.svelte +++ /dev/null @@ -1,27 +0,0 @@ -