fcharrier
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
7 additions and
1 deletions
-
docs/en/docs/js/custom.js
|
|
|
@ -81,8 +81,14 @@ 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, |
|
|
|
|