Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Sep 18, 2023
1 parent 2867bf6 commit 249fc00
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/components/notebookViewer/HTMLOutput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export default class HTMLOutput extends Vue {
@Prop(String) readonly html!: string;
htmlDiv!: HTMLDivElement;
recurseDescendants (node: Element) {
for (var i = 0; i < node.children.length; i++) {
var child = node.children[i];
Expand All @@ -28,7 +26,10 @@ export default class HTMLOutput extends Vue {
mounted() {
this.recurseDescendants(this.htmlDiv);
console.log("running scripts");
this.$nextTick(() => {
this.recurseDescendants(this.htmlDiv);
});
}
}
</script>
Expand Down

0 comments on commit 249fc00

Please # to comment.