We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d4e8c3 + 14be2f2 commit 5b02024Copy full SHA for 5b02024
src/console.js
@@ -41,6 +41,8 @@ export default class Console {
41
42
this.addConfig(config);
43
this.params.global.TypedArray = Object.getPrototypeOf(Int8Array);
44
+ this.container = container;
45
+ this.customEvent = new Event(`console-outputs`);
46
}
47
48
addConfig(config = {}) {
@@ -210,6 +212,7 @@ export default class Console {
210
212
values.forEach((val) => {
211
213
rowEl.appendChild(this.createTypedView(val, mode).el);
214
});
215
+ this.container.dispatchEvent(new CustomEvent(`console-outputs`));
216
this._el.appendChild(rowEl);
217
if (onPrint) {
218
onPrint(rowEl);
0 commit comments