fixed the bug std-err attribute cannot set stderr properly (#371)

This commit is contained in:
hoge1e3
2022-05-17 11:30:57 +09:00
committed by GitHub
parent 0476627f34
commit eb3a31a698
2 changed files with 2 additions and 2 deletions

View File

@@ -307,7 +307,7 @@ export class PyWidget extends HTMLElement {
}
if (this.hasAttribute('std-err')) {
this.outputElement = document.getElementById(this.getAttribute('std-err'));
this.errorElement = document.getElementById(this.getAttribute('std-err'));
} else {
this.errorElement = this.outputElement;
}

View File

@@ -71,7 +71,7 @@ export class PyScript extends BaseEvalElement {
}
if (this.hasAttribute('std-err')) {
this.outputElement = document.getElementById(this.getAttribute('std-err'));
this.errorElement = document.getElementById(this.getAttribute('std-err'));
} else {
this.errorElement = this.outputElement;
}