try to detect bd again

This commit is contained in:
Astra 2018-05-15 17:48:34 -04:00
parent d1f99bb65e
commit 13b4d93ca0
1 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@
<script> <script>
// wait until DOM is ready so that error messages can display properly // wait until DOM is ready so that error messages can display properly
window.onload = async () => { window.onload = setTimeout(async () => {
setTimeout(() => { setTimeout(() => {
init(); init();
@ -174,7 +174,7 @@
electron.getCurrentWindow().loadURL('https://' + (branch && branch != 'development' ? branch + '.' : '') + 'discordapp.com/channels/@me'); electron.getCurrentWindow().loadURL('https://' + (branch && branch != 'development' ? branch + '.' : '') + 'discordapp.com/channels/@me');
} }
if (window.BdApi) { if (window.betterDiscordIPC) {
alert('EndPwn3 is not compatible with BetterDiscord\n\nPress OK to return to Discord', 'EndPwn3: Framework Conflict'); alert('EndPwn3 is not compatible with BetterDiscord\n\nPress OK to return to Discord', 'EndPwn3: Framework Conflict');
electron.getCurrentWindow().loadURL('https://' + (branch && branch != 'development' ? branch + '.' : '') + 'discordapp.com/channels/@me'); electron.getCurrentWindow().loadURL('https://' + (branch && branch != 'development' ? branch + '.' : '') + 'discordapp.com/channels/@me');
return; return;
@ -259,7 +259,7 @@
document.querySelector('div').parentNode.innerHTML += '<span>Inititialization failure. Check the console for details.</span>'; document.querySelector('div').parentNode.innerHTML += '<span>Inititialization failure. Check the console for details.</span>';
} }
}; }, 500);
</script> </script>