feat: only update text content if required

This commit is contained in:
mathuo 2022-05-09 21:37:57 +01:00
parent 48a1cc9693
commit a7b05cf1a8
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281

View File

@ -104,6 +104,8 @@ export class DefaultTab extends CompositeDisposable implements ITabRenderer {
}
private render() {
this._content.textContent = this.params.title;
if (this._content.textContent !== this.params.title) {
this._content.textContent = this.params.title;
}
}
}