mirror of
https://github.com/open-webui/open-webui
synced 2024-11-26 14:02:29 +00:00
refac
This commit is contained in:
parent
d692649bac
commit
5904ef86f2
@ -39,6 +39,10 @@
|
|||||||
const codeElement = document.getElementById(`code-${codeId}`);
|
const codeElement = document.getElementById(`code-${codeId}`);
|
||||||
if (codeElement) {
|
if (codeElement) {
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
|
// If the code is already loaded, don't load it again
|
||||||
|
if (codeElement.innerHTML) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
new CodeBlock({
|
new CodeBlock({
|
||||||
target: codeElement,
|
target: codeElement,
|
||||||
|
Loading…
Reference in New Issue
Block a user