mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 19:25:35 -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user