Add role-cbs support to custom HTML
This commit is contained in:
@@ -206,7 +206,7 @@
|
|||||||
function RenderGUIHtml(html:string){
|
function RenderGUIHtml(html:string){
|
||||||
try {
|
try {
|
||||||
const parser = new DOMParser()
|
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)
|
console.log(doc.body)
|
||||||
return doc.body
|
return doc.body
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -590,4 +590,4 @@
|
|||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user