mirror of
https://github.com/fastapi/sqlmodel.git
synced 2026-02-03 19:19:49 +08:00
🐛 Fix copy button in custom.js (#1711)
This commit is contained in:
@@ -81,8 +81,11 @@ function setupTermynal() {
|
||||
}
|
||||
}
|
||||
saveBuffer();
|
||||
const inputCommands = useLines.filter(line => line.type === "input").map(line => line.value).join("\n");
|
||||
node.textContent = inputCommands;
|
||||
const div = document.createElement("div");
|
||||
node.replaceWith(div);
|
||||
node.style.display = "none";
|
||||
node.after(div);
|
||||
const termynal = new Termynal(div, {
|
||||
lineData: useLines,
|
||||
noInit: true,
|
||||
|
||||
Reference in New Issue
Block a user