Domain change removed the www

This commit is contained in:
ION606
2022-12-24 09:24:24 -08:00
parent 55e7c73a31
commit 3e5202f5b2
11 changed files with 48 additions and 39 deletions
+5 -5
View File
@@ -9,7 +9,7 @@
<title>Website Name</title>
<meta content="Selmer Bot Web Dashboard" property="og:title" />
<meta content="A web dashboard for Selmer Bot (still in Beta)" property="og:description" />
<meta content="https://www.selmerbot.com" property="og:url" />
<meta content="https://selmerbot.com" property="og:url" />
<meta content="https://raw.githubusercontent.com/ION606/selmer-bot-website/main/assets/favicon.ico" property="og:image" />
<meta content="#050089" data-react-helmet="true" name="theme-color" />
<meta name="twitter:card" content="summary_large_image">
@@ -102,7 +102,7 @@
const owned = result.filter((inp) => { return (inp.owner); });
var xhr = new XMLHttpRequest();
xhr.open('post', 'https://www.selmerbot.com/user/', true);
xhr.open('post', 'https://selmerbot.com/user/', true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhr.setRequestHeader('guilds', JSON.stringify(owned));
xhr.setRequestHeader('userId', window.sessionStorage.getItem('Id'));
@@ -136,19 +136,19 @@
</script>
<script>
//Get the redirect link <!-- NOTE: "response_type=token" ALWAYS!!! https://www.selmerbot.com/ -->
//Get the redirect link <!-- NOTE: "response_type=token" ALWAYS!!! https://selmerbot.com/ -->
function getAPIRedirect() {
if (window.location.href.indexOf('localhost') != -1) {
return 'https://discord.com/api/oauth2/authorize?client_id=926551095352901632&redirect_uri=http%3A%2F%2Flocalhost%3A53134%2F&response_type=token&scope=identify%20guilds';
} else {
// return "https://discord.com/api/oauth2/authorize?client_id=944046902415093760&redirect_uri=https%3A%2F%2Fselmer-bot-website.herokuapp.com%2F&response_type=token&scope=identify%20guilds"
return 'https://discord.com/api/oauth2/authorize?client_id=944046902415093760&redirect_uri=https%3A%2F%2Fwww.selmerbot.com%2F&response_type=token&scope=identify%20guilds';
return 'https://discord.com/api/oauth2/authorize?client_id=944046902415093760&redirect_uri=https%3A%2F%2Fselmerbot.com%2F&response_type=token&scope=identify%20guilds';
}
}
function logout() {
var xhr = new XMLHttpRequest();
xhr.open('post', 'https://www.selmerbot.com/logout/', true);
xhr.open('post', 'https://selmerbot.com/logout/', true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhr.setRequestHeader('sessionid', window.localStorage.getItem('sessionId'));