Skip to content

Commit b094ce3

Browse files
committed
recorder: return after resolve() and faster track loading
faster via `==`
1 parent 4d5f1ee commit b094ce3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/recorder/interface.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@
710710
if (lIdx >= 0) {
711711
var tries = 100;
712712
var l = data;
713-
while (l && l.split(",")[lIdx]=="" && tries--)
713+
while (l && l.split(",")[lIdx]==="" && tries--)
714714
l = f.readLine();
715715
if (l) data = l;
716716
}
@@ -719,6 +719,7 @@
719719
if (!trackInfo || !("headers" in trackInfo)) {
720720
showToast("Error loading track list.", "error");
721721
resolve();
722+
return;
722723
}
723724
trackInfo.headers = trackInfo.headers.split(",");
724725
trackList.push({

0 commit comments

Comments
 (0)