Fix match issue some people are having

This commit is contained in:
Jiiks 2016-01-13 10:59:56 +02:00
parent a9c73c721a
commit ebb9c7e0e6
1 changed files with 5 additions and 2 deletions

View File

@ -59,7 +59,10 @@ customGamePlugin.prototype.setGame = function(game) {
customGamePlugin.prototype.setPlaying = function() {
if(!this.enabled) return;
if(this.uid == null) this.uid = $(".account .avatar-small").css("background-image").match(/\d+/);
if(this.uid == null) {
if($(".account .avatar-small").css("background-image") == undefined)return;
this.uid = $(".account .avatar-small").css("background-image").match(/\d+/);
}
if(this.game == null) this.game = "";
@ -78,4 +81,4 @@ customGamePlugin.prototype.setPlaying = function() {
}
BdApi.setPlaying(this.game);
};
};