Skip to content

Commit 3599cc1

Browse files
authored
Merge pull request #10 from RhubarbPHP/patch/RemoveEventProcessingClassOnComplete
Remove 'event-processing' class on completed
2 parents 92a5fea + d8d408b commit 3599cc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Leaves/BackgroundTaskViewBridge.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ bridge.prototype.start = function(){
3636
xmlhttp.onreadystatechange = function () {
3737

3838
// if the ready state is now 4 we've already processed our entire output.
39-
if (xmlhttp.completed) {
39+
if (xmlhttp.completed || xmlhttp.readyState === 4) {
40+
document.body.classList.remove("event-processing");
41+
4042
return;
4143
}
4244

0 commit comments

Comments
 (0)