Skip to content

Agent Zero AI framework

fix for image url replacement

frdel3d93dbc5750f
diff --git a/webui/js/messages.js b/webui/js/messages.js
index 6c627ed68..b821e6f0b 100644
--- a/webui/js/messages.js
+++ b/webui/js/messages.js
@@ -769,7 +769,7 @@ function convertHTML(str) {
}
function convertImgFilePaths(str) {
- return str.replace("img://", "/image_get?path=");
+ return str.replace(/img:\/\//g, "/image_get?path=");
}
export function convertIcons(str) {