Skip to content

Commit 94e38b2

Browse files
committed
Use span for text content
1 parent 5039c3a commit 94e38b2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/plugins/driveBrowserPlugin.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,16 @@ class DriveStatusWidget extends Widget {
5151
'jp-drive-status-loading',
5252
'lm-mod-hidden'
5353
);
54-
this.node.textContent = '';
54+
55+
this._textSpan = document.createElement('span');
56+
this._textSpan.textContent = '';
57+
this.node.appendChild(this._textSpan);
58+
5559
this._isLoading = false;
5660
}
5761

5862
updateStatus(text: string) {
59-
this.node.textContent = `${text}`;
63+
this._textSpan.textContent = text;
6064
}
6165

6266
/**
@@ -94,6 +98,7 @@ class DriveStatusWidget extends Widget {
9498
}
9599

96100
private _isLoading: boolean;
101+
private _textSpan: HTMLSpanElement;
97102
}
98103

99104
/**

0 commit comments

Comments
 (0)