Merge pull request #178 from ollama-webui/dev

fix: modelfiles create
This commit is contained in:
Timothy Jaeryang Baek 2023-12-04 03:04:28 -05:00 committed by GitHub
commit 2fb490c5ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,7 +241,10 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
categories[category.toLowerCase()] = true;
}
});
window.opener.postMessage('loaded', '*');
if (window.opener ?? false) {
window.opener.postMessage('loaded', '*');
}
});
</script>