Sfoglia il codice sorgente

readAllLinesAsync fix

dsehnal 2 anni fa
parent
commit
4df028aa77
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/mol-io/reader/common/text/tokenizer.ts

+ 1 - 1
src/mol-io/reader/common/text/tokenizer.ts

@@ -173,7 +173,7 @@ namespace Tokenizer {
         await chunkedSubtask(ctx, chunkSize, state, (chunkSize, state) => {
             readLinesChunkChecked(state, chunkSize, tokens);
             return state.position < state.length ? chunkSize : 0;
-        }, (ctx, state) => ctx.update({ message: 'Parsing...', current: state.position, max: length }));
+        }, (ctx, state) => ctx.update({ message: 'Parsing...', current: state.position, max: state.length }));
 
         return tokens;
     }