fix for canary + ptb

This commit is contained in:
Zack Rauen 2018-06-27 23:33:02 -04:00
parent ba5fc863ee
commit ca4a586da0
2 changed files with 3 additions and 3 deletions

View File

@ -3957,7 +3957,7 @@ class V2C_PublicServers extends BDV2.reactComponent {
self.joinWindow = new (window.require('electron').remote.BrowserWindow)(options);
let sub = window.location.hostname.split('.')[0];
let url = self.connectEndPoint + (sub === 'canary' || sub === 'ptb' ? `/${sub}` : '');
let url = self.connectEndPoint + (sub === 'canary' || sub === 'ptb' ? `/${sub}` : '') + "?betterDiscord";
self.joinWindow.webContents.on('did-navigate', (event, url) => {
if (url != "https://join.discordservers.com/session") return;
self.joinWindow.close();
@ -4008,7 +4008,7 @@ class V2C_PublicServers extends BDV2.reactComponent {
}
get connectEndPoint() {
return 'https://join.discordservers.com/connect?betterDiscord';
return 'https://join.discordservers.com/connect';
}
checkConnection() {

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long