diff --git a/scripts/script.js b/scripts/script.js index 499dd6a..c2a0863 100755 --- a/scripts/script.js +++ b/scripts/script.js @@ -65,6 +65,7 @@ } function updateProgress(slide_number) { + if (!progress) return; progress.style.width = (100 / (slideList.length - 1) * normalizeSlideNumber(slide_number)).toFixed(2) + '%'; }