mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 10:17:23 -05:00
fixed the bug std-err attribute cannot set stderr properly (#371)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user