Fix match issue some people are having
This commit is contained in:
parent
a9c73c721a
commit
ebb9c7e0e6
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue