This commit is contained in:
Timothy J. Baek committed 2024-10-24 15:02:26 -07:00
1 parent 4282b20495
commit 1472f12f5e
2 files changed
+32 -1

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ export const replaceTokens = (content, char, user) => {
// Replace HTML ID tags with corresponding HTML content
content = content.replace(htmlIdToken, (match, fileId) => {
const htmlUrl = `${WEBUI_BASE_URL}/api/v1/files/${fileId}/content`;
const htmlUrl = `${WEBUI_BASE_URL}/api/v1/files/${fileId}/content/html`;
return `<iframe src="${htmlUrl}" width="100%" frameborder="0" onload="this.style.height=(this.contentWindow.document.body.scrollHeight+20)+'px';"></iframe>`;
});