This commit is contained in:
Timothy J. Baek 2024-06-12 00:16:54 -07:00
parent ae3d8ce0c0
commit 482a41e49b

View File

@ -126,7 +126,11 @@
document.getElementById('progress-bar')
) {
loadingProgress.subscribe((value) => {
document.getElementById('progress-bar').style.width = `${value * 0.24}rem`;
const progressBar = document.getElementById('progress-bar');
if (progressBar) {
progressBar.style.width = `${value * 0.24}rem`;
}
});
await loadingProgress.set(100);