fix: dont update result if data is empty

This commit is contained in:
2022-10-27 09:40:42 +02:00
parent 8da666e141
commit d20933bdec

View File

@@ -66,6 +66,7 @@ for (let i = 0; i < 42; ++i) {
this.worker = new Worker();
this.worker.onmessage = ({ data }) => {
if (data === '') return;
this.result += `${data}\n`;
};