fix: model import
This commit is contained in:
1 parent
a7d8ed0c6d
commit
642dcd4b70
2 files changed
+10
-3
No files matched your search
@@ -62,9 +62,17 @@
|
||||
!['https://openwebui.com', 'https://www.openwebui.com', 'http://localhost:5173'].includes(
|
||||
event.origin
|
||||
)
|
||||
)
|
||||
) {
|
||||
return;
|
||||
model = JSON.parse(event.data);
|
||||
}
|
||||
|
||||
let data = JSON.parse(event.data);
|
||||
|
||||
if (data?.info) {
|
||||
data = data.info;
|
||||
}
|
||||
|
||||
model = data;
|
||||
});
|
||||
|
||||
if (window.opener ?? false) {
|
||||
|
||||
Reference in new issue
Block a user