Commit d02bfa84 authored by mnvdk's avatar mnvdk

tiny bit of cleanup

parent 84d5edbb
...@@ -109,12 +109,9 @@ class Loader{ ...@@ -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: {
...@@ -298,11 +295,8 @@ class Loader{ ...@@ -298,11 +295,8 @@ class Loader{
this.callback(songId) this.callback(songId)
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment