From 20b964ab2e76815c0537228dd22e8546d0f6b47a Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Thu, 26 Mar 2020 00:56:49 +0300 Subject: [PATCH] Fix some osu songs not being imported --- public/src/js/importsongs.js | 2 +- public/src/js/scorestorage.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/js/importsongs.js b/public/src/js/importsongs.js index bc45977..375c32b 100644 --- a/public/src/js/importsongs.js +++ b/public/src/js/importsongs.js @@ -430,7 +430,7 @@ for(var i = path.length - 2; i >= 0; i--){ var hasTitle = false for(var j in exclude){ - if(path[i].indexOf(exclude[j].toLowerCase()) !== -1){ + if(exclude[j] && path[i].indexOf(exclude[j].toLowerCase()) !== -1){ hasTitle = true break } diff --git a/public/src/js/scorestorage.js b/public/src/js/scorestorage.js index 6d2b16c..82f6d11 100644 --- a/public/src/js/scorestorage.js +++ b/public/src/js/scorestorage.js @@ -93,7 +93,7 @@ class ScoreStorage{ } return output } - save(localOnly){ + save(){ for(var hash in this.scores){ this.writeString(hash) }