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) }