Skip to content

Commit

Permalink
Remove the loading indicator when there's a rendering error
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed May 5, 2024
1 parent 94d8f26 commit 47054ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/markdown-preview/lib/markdown-preview-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ module.exports = class MarkdownPreviewView {

showError(result) {
this.element.textContent = ''
this.element.classList.remove('loading')
const h2 = document.createElement('h2')
h2.textContent = 'Previewing Markdown Failed'
this.element.appendChild(h2)
Expand Down

0 comments on commit 47054ea

Please sign in to comment.