From 0b12fda8164b72d4e5a11d94819ca1ea1d910337 Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 9 Jul 2021 22:23:34 +0100 Subject: [PATCH] changing url of discord linking with script --- src/js/ui.js | 6 +++++- static/index.html | 9 +-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/js/ui.js b/src/js/ui.js index f5fe4cdca..234929d17 100644 --- a/src/js/ui.js +++ b/src/js/ui.js @@ -108,7 +108,7 @@ export function swapElements( } export function changePage(page) { - console.log('change'); + console.log("change"); if (pageTransition) { return; } @@ -226,6 +226,10 @@ if (window.location.hostname === "localhost") { $("body").append( `
local
local
` ); + $(".pageSettings .discordIntegration .buttons a").attr( + "href", + "https://discord.com/api/oauth2/authorize?client_id=798272335035498557&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2Fverify&response_type=token&scope=identify" + ); } //stop space scrolling diff --git a/static/index.html b/static/index.html index 978979a18..9a728c5fb 100644 --- a/static/index.html +++ b/static/index.html @@ -2030,16 +2030,9 @@ might result in the bot not being able to give you a role.
- Link with Discord