Fix #152; change JS load order to load faster
This commit is contained in:
parent
296bddefcd
commit
16d3c600fe
3 changed files with 20 additions and 24 deletions
|
|
@ -617,12 +617,12 @@ Callbacks = {
|
|||
},
|
||||
|
||||
changeMedia: function(data) {
|
||||
console.log(data);
|
||||
$("#currenttitle").text("Currently Playing: " + data.title);
|
||||
if(data.type != "sc" && MEDIATYPE == "sc")
|
||||
if(data.type != "sc" && PLAYER.type == "sc")
|
||||
// [](/goddamnitmango)
|
||||
fixSoundcloudShit();
|
||||
if(data.type != MEDIATYPE) {
|
||||
MEDIATYPE = data.type;
|
||||
if(data.type != PLAYER.type) {
|
||||
PLAYER = new Media(data);
|
||||
}
|
||||
if(PLAYER.update) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue