From 81adfff2e4f8227efa5262c4138d23064e206d84 Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Sat, 6 Apr 2019 12:30:50 -0700 Subject: [PATCH] Missed file. --- js/ui/tape.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/tape.js b/js/ui/tape.js index 669f962..5dc1156 100644 --- a/js/ui/tape.js +++ b/js/ui/tape.js @@ -68,7 +68,9 @@ export default function Tape(io) { } } io.setTape(buf); - done(); + if (done) { + done(); + } }); }; fileReader.readAsArrayBuffer(file);