Fire data-progress of 1 in project data onloadend

This commit is contained in:
Thomas Weber committed 2020-10-10 18:56:15 -05:00
1 parent ab9659194b
commit fdb1cef79e
1 file changed
+6 -1
+6 -1
View File
@@ -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();
});