Fire data-progress of 1 in project data onloadend
This commit is contained in:
1 file changed
+6
-1
+6
-1
@@ -111,7 +111,12 @@ window.SBDownloader = (function() {
|
||||
detail: progress
|
||||
}));
|
||||
}
|
||||
}
|
||||
};
|
||||
xhr.onloadend = () => {
|
||||
progressTarget.dispatchEvent(new CustomEvent('data-progress', {
|
||||
detail: 1
|
||||
}));
|
||||
};
|
||||
xhr.open('GET', PROJECT_HOST.replace('$id', projectId));
|
||||
xhr.send();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user