Skip to content

Commit 029ee85

Browse files
committed
fix: Prevent repeated addition of maxkb tag
Closes #1659
1 parent dd6eee6 commit 029ee85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/application/template/embed.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ function initMaxkbStyle(root){
310310
}
311311

312312
function embedChatbot() {
313+
if (document.getElementById('maxkb')) {
314+
return
315+
}
313316
white_list_str='{{white_list_str}}'
314317
white_list=white_list_str.split(',')
315318

0 commit comments

Comments
 (0)