Skip to content

Commit

Permalink
refactor: Use setText instead of innerText
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Apr 26, 2022
1 parent cf02b08 commit e3672bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkdocsPublisher/utils/status_bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export class ShareStatusBar {
}

increment () {
this.status.innerText = `⌛Sharing Notes: ${++this.counter}/${this.numberOfNotesToPublish}`
this.status.setText(`⌛Sharing Notes: ${++this.counter}/${this.numberOfNotesToPublish}`)
}

finish (displayDurationMillisec: number) {
this.status.innerText = `✅ Published Notes: ${this.counter}/${this.numberOfNotesToPublish}`
this.status.setText(`✅ Published Notes: ${this.counter}/${this.numberOfNotesToPublish}`)
setTimeout(() => {
this.statusBarItem.remove()
}, displayDurationMillisec)
Expand Down

0 comments on commit e3672bf

Please sign in to comment.