Fix some terrible code

This commit is contained in:
Lncvrt committed 2025-03-02 13:59:10 -07:00
1 parent 2fa71b9b0c
commit cbfea43fb8
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -497,9 +497,9 @@ function downloadConfig() {
});
}
function setCookieAndRedirect() {
function setCookieAndRedirect(clientID, redirectUrl) {
document.cookie = "redirect_link=" + window.location.href + "; expires=Session; path=/;";
window.location.href = "https://discord.com/api/oauth2/authorize?client_id=1204620985798631464&redirect_uri=https%3A%2F%2Fupload.xytriza.com%2Fapi%2Fdashboard%2FdiscordCallback.php&response_type=code&scope=identify+guilds.join+email";
window.location.href = `https://discord.com/api/oauth2/authorize?client_id=${clientID}&redirect_uri=${redirectUrl}&response_type=code&scope=identify+guilds.join+email`;
}
function openFileSettings(fileId, filename, filepassword) {