mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -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')) {
|
if (this.hasAttribute('std-err')) {
|
||||||
this.outputElement = document.getElementById(this.getAttribute('std-err'));
|
this.errorElement = document.getElementById(this.getAttribute('std-err'));
|
||||||
} else {
|
} else {
|
||||||
this.errorElement = this.outputElement;
|
this.errorElement = this.outputElement;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export class PyScript extends BaseEvalElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.hasAttribute('std-err')) {
|
if (this.hasAttribute('std-err')) {
|
||||||
this.outputElement = document.getElementById(this.getAttribute('std-err'));
|
this.errorElement = document.getElementById(this.getAttribute('std-err'));
|
||||||
} else {
|
} else {
|
||||||
this.errorElement = this.outputElement;
|
this.errorElement = this.outputElement;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user