From ddc3e1a4dcc0a102264065beb7c27a4ac29bc591 Mon Sep 17 00:00:00 2001 From: Bui Date: Tue, 6 Nov 2018 21:28:28 +0000 Subject: [PATCH] save current song position before session menu --- public/src/js/songselect.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index 15d8463..3060624 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -648,6 +648,9 @@ class SongSelect{ if(p2.session){ p2.send("gameend") }else{ + localStorage["selectedSong"] = this.selectedSong + localStorage["selectedDiff"] = 0 + assets.sounds["don"].play() this.clean() setTimeout(() => {