Fix discordapp.com still being used in the app

This commit is contained in:
chylex 2020-06-24 17:10:58 +02:00
parent e800e7e25e
commit e9679c616f

View File

@ -1,7 +1,7 @@
if (!window.location.href.includes("discord.com/")){
if (!confirm("Could not detect Discord in the URL, do you want to run the script anyway?")){
return;
}
const url = window.location.href;
if (!url.includes("discord.com/") && !url.includes("discordapp.com/") && !confirm("Could not detect Discord in the URL, do you want to run the script anyway?")){
return;
}
if (window.DHT_LOADED){