Skip to content

Commit

Permalink
Use a different class for progress text fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
yourWaifu committed Oct 12, 2023
1 parent 9504845 commit 747d336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function HTML(runner, options) {
} else {
// On some broswers, canvas might be unavailable for whatever reason.
// As such, we need a text version as a fallback
var progressTextFallback = fragment('<li class="progress">progress: <em>0</em>%</li>');
var progressTextFallback = fragment('<li class="progress-text">progress: <em>0</em>%</li>');
progressText = progressTextFallback.getElementsByTagName('em')[0];
items[0].replaceWith(progressTextFallback);
}
Expand Down

0 comments on commit 747d336

Please sign in to comment.