Fixed bd server join button
This commit is contained in:
parent
9a2b4fb8b2
commit
2039252e69
10
js/main.js
10
js/main.js
|
@ -960,7 +960,7 @@ PublicServers.prototype.show = function () {
|
|||
});
|
||||
|
||||
$("button[data-server-invite-code=0Tmfo5ZbORCRqbAd]").off("click").on("click", function(){
|
||||
self.joinServer("0Tmfo5ZbORCRqbAd");
|
||||
self.joinServerDirect("0Tmfo5ZbORCRqbAd");
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -1132,6 +1132,14 @@ PublicServers.prototype.joinServer = function (code) {
|
|||
this.hide();
|
||||
};
|
||||
|
||||
PublicServers.prototype.joinServerDirect = function(code) {
|
||||
$(".guilds-add").click();
|
||||
$(".action.join .btn").click();
|
||||
$(".create-guild-container input").val(code);
|
||||
$(".form.join-server .btn-primary").click();
|
||||
this.hide();
|
||||
};
|
||||
|
||||
PublicServers.prototype.escape = function(unsafe) {
|
||||
if(unsafe === undefined) return "";
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue