We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbb0d8f commit 6ebb7fcCopy full SHA for 6ebb7fc
1 file changed
src/components/BootstrapBlazor.PdfReader/PdfReader.razor.js
@@ -139,10 +139,7 @@ const loadPdf = async pdf => {
139
140
if (bar) {
141
const val = loaded / total * 100;
142
- if (val > 100) {
143
- val = 100;
144
- }
145
- bar.style.setProperty('--bb-view-progress-val', `${val}%`);
+ bar.style.setProperty('--bb-view-progress-val', `${Math.min(val, 100)}%`);
146
147
if (progressHandler === null) {
148
progressHandler = setTimeout(() => {
0 commit comments