discord is a fuck

This commit is contained in:
Astra 2018-05-02 22:13:03 -04:00
parent d1afc1724f
commit f430a4159f

View file

@ -41,13 +41,8 @@
}); });
function load() { function load() {
win.loadURL('https://' + ( var branch = require('path').basename(electron.app.getPath("userData")).substr(7);
navigator.userAgent.indexOf('Discord PTB') > -1 ? win.loadURL('https://' + (branch ? branch + '.' : '') + 'discordapp.com/channels/@me');
'ptb.' :
navigator.userAgent.indexOf('Discord Canary') > -1 ?
'canary.' :
''
) + 'discordapp.com/channels/@me');
} }
// get the data path // get the data path