refac: openwebui.com integration
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user