tiny bit of cleanup

This commit is contained in:
mnvdk 2020-04-16 21:55:55 +02:00
parent 84d5edbbd0
commit d02bfa8426

View File

@ -109,12 +109,9 @@ class Loader{
assets.categories = JSON.parse(categories) assets.categories = JSON.parse(categories)
assets.categories.forEach(cat => { assets.categories.forEach(cat => {
let title = cat.title let title = cat.title
// if(cat.title_lang){
translations.categories[title] = cat.title_lang translations.categories[title] = cat.title_lang
// }
}); });
separateStrings() separateStrings() //load categories into strings.js to handle multi language
assets.categories.push({ assets.categories.push({
title: "default", title: "default",
songSkin: { songSkin: {
@ -299,10 +296,7 @@ class Loader{
pageEvents.send("ready", readyEvent) pageEvents.send("ready", readyEvent)
}) })
}, this.errorMsg.bind(this)) }, this.errorMsg.bind(this))
}) })
} }
addPromise(promise, url){ addPromise(promise, url){
this.promises.push(promise) this.promises.push(promise)