From 0144367c6e10736cad212c569e20c2a5c9c9ac52 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Sat, 14 Mar 2020 12:44:29 +0300 Subject: [PATCH] Fix importing custom songs --- public/src/js/importsongs.js | 2 +- public/src/js/songselect.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/js/importsongs.js b/public/src/js/importsongs.js index 992e96d..bc45977 100644 --- a/public/src/js/importsongs.js +++ b/public/src/js/importsongs.js @@ -205,7 +205,7 @@ order: index + 1, type: "tja", chart: file, - stars: {}, + courses: {}, music: "muted" } var coursesAdded = false diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index 0ae5b14..04d8ed4 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -2279,7 +2279,7 @@ class SongSelect{ }) } this.draw.songFrame(config) - if(config.song.p2Cursor !== null && p2.socket.readyState === 1){ + if("p2Cursor" in config.song && config.song.p2Cursor !== null && p2.socket.readyState === 1){ this.draw.diffCursor({ ctx: ctx, font: this.font,