This commit is contained in:
Christian Clauss
2022-05-04 18:09:23 +02:00
committed by GitHub
parent 4cef872a6a
commit c2f4ea7b13

View File

@@ -26,7 +26,7 @@ export class PyBox extends HTMLElement {
while (this.childNodes.length > 0) { while (this.childNodes.length > 0) {
console.log(this.firstChild); console.log(this.firstChild);
if (this.firstChild.nodeName == 'PY-REPL') { if (this.firstChild.nodeName == 'PY-REPL') {
// in this case we need to remove the child and craete a new one from scratch // in this case we need to remove the child and create a new one from scratch
const replDiv = document.createElement('div'); const replDiv = document.createElement('div');
// we need to put the new repl inside a div so that if the repl has auto-generate true // we need to put the new repl inside a div so that if the repl has auto-generate true
// it can replicate itself inside that constrained div // it can replicate itself inside that constrained div