8000 fixed the bug std-err attribute cannot set stderr properly (#371) · Linux4SA/pyscript@eb3a31a · GitHub
[go: up one dir, main page]

Skip to content

Commit eb3a31a

Browse files
authored
fixed the bug std-err attribute cannot set stderr properly (pyscript#371)
1 parent 0476627 commit eb3a31a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyscriptjs/src/components/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export class PyWidget extends HTMLElement {
307307
}
308308

309309
if (this.hasAttribute('std-err')) {
310-
this.outputElement = document.getElementById(this.getAttribute('std-err'));
310+
this.errorElement = document.getElementById(this.getAttribute('std-err'));
311311
} else {
312312
this.errorElement = this.outputElement;
313313
}

pyscriptjs/src/components/pyscript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class PyScript extends BaseEvalElement {
7171
}
7272

7373
if (this.hasAttribute('std-err')) {
74-
this.outputElement = document.getElementById(this.getAttribute('std-err'));
74+
this.errorElement = document.getElementById(this.getAttribute('std-err'));
7575
} else {
7676
this.errorElement = this.outputElement;
7777
}

0 commit comments

Comments
 (0)
0