mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-15 22:00:37 -05:00
fix error when trying to output to non existing element
This commit is contained in:
@@ -188,7 +188,7 @@ export class PyRepl extends BaseEvalElement {
|
||||
this.errorElement = this.outputElement;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
this.appendChild(mainDiv);
|
||||
this.editor.focus();
|
||||
|
||||
@@ -247,7 +247,7 @@ export class PyScript extends BaseEvalElement {
|
||||
}
|
||||
|
||||
getSourceFromElement(): string {
|
||||
return this.code;
|
||||
return htmlDecode(this.code);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user