mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
This commit is contained in:
parent
be832063c5
commit
2a0e214240
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ export const renderSnippet = () => {
|
|||
} else if (item.type === "js") {
|
||||
const scriptElement = document.createElement("script");
|
||||
scriptElement.type = "text/javascript";
|
||||
scriptElement.text = `try{${item.content}}catch(e){console.error(e, 111)}`;
|
||||
scriptElement.text = item.content;
|
||||
scriptElement.id = `snippetJS${item.name}`;
|
||||
document.head.appendChild(scriptElement);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue