Pārlūkot izejas kodu

fix(nsis-compat-tester): fix progress

evshiron 7 gadi atpakaļ
vecāks
revīzija
9e09d85e80
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      packages/nsis-compat-tester/main.html

+ 1 - 1
packages/nsis-compat-tester/main.html

@@ -70,7 +70,7 @@ const app = new Vue({
                             this.progress = 0;
 
                             const handleDownloadProgress = (state) => {
-                                this.progress = state.percentage;
+                                this.progress = state.percentage || 0;
                             };
 
                             updater.onDownloadProgress.subscribe(handleDownloadProgress);