Add role-cbs support to custom HTML

This commit is contained in:
poroyo
2024-11-07 03:19:32 +09:00
parent 39a462ded4
commit e0a015c476

View File

@@ -206,7 +206,7 @@
function RenderGUIHtml(html:string){
try {
const parser = new DOMParser()
const doc = parser.parseFromString(risuChatParser(html ?? ''), 'text/html')
const doc = parser.parseFromString(risuChatParser(html ?? '', {cbsConditions: getCbsCondition()}), 'text/html')
console.log(doc.body)
return doc.body
} catch (error) {
@@ -590,4 +590,4 @@
</span>
{/if}
</div>
</div>
</div>