refac: openwebui.com integration

This commit is contained in:
Timothy J. Baek committed 2024-06-01 21:16:32 -07:00
1 parent 32a8884c0c
commit 1c7dd7b859
3 files changed
+6 -41

No files matched your search

@@ -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;