Skip to content

Commit 0d699bc

Browse files
Testing purpose only
1 parent 823f1f1 commit 0d699bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/embed/ts-embed.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class TsEmbed {
100100
* This is useful for removing the DOM node when the
101101
* embed instance is destroyed.
102102
*/
103-
protected insertedDomEl: Node;
103+
public insertedDomEl: Node;
104104

105105
/**
106106
* The DOM node where the ThoughtSpot app is to be embedded.
@@ -1133,7 +1133,8 @@ export class TsEmbed {
11331133
*/
11341134
public destroy(): void {
11351135
try {
1136-
this.insertedDomEl?.parentNode.removeChild(this.insertedDomEl);
1136+
(this.insertedDomEl as HTMLElement)?.remove();
1137+
// this.insertedDomEl?.remove();
11371138
this.unsubscribeToEvents();
11381139
} catch (e) {
11391140
logger.log('Error destroying TS Embed', e);

0 commit comments

Comments
 (0)