mirror of
https://github.com/ION606/selmer-bot-website.git
synced 2026-05-14 22:16:54 +00:00
Fixed a really stupid mistake
This commit is contained in:
+7
-4
@@ -394,9 +394,9 @@
|
||||
|
||||
|
||||
window.onload = () => {
|
||||
var serverSettings = JSON.parse(window.localStorage.getItem('serverInfo'));
|
||||
var sessionId = window.localStorage.getItem('sessionId');
|
||||
|
||||
if (!serverSettings) {
|
||||
if (!sessionId) {
|
||||
alert("Please log in to continue");
|
||||
if (window.location.href.indexOf('localhost') != -1) {
|
||||
window.location = 'https://discord.com/api/oauth2/authorize?client_id=926551095352901632&redirect_uri=http%3A%2F%2Flocalhost%3A53134%2F&response_type=token&scope=identify%20guilds';
|
||||
@@ -406,8 +406,10 @@
|
||||
}
|
||||
|
||||
//Get serverId
|
||||
const id = serverSettings.Id; // window.localStorage.getItem('Id').toString();
|
||||
|
||||
// const id = serverSettings.Id; // window.localStorage.getItem('Id').toString();
|
||||
const session = getSessionData();
|
||||
session.then((sessionInfo) => {
|
||||
const id = sessionInfo.userId;
|
||||
//Check if the user has premium
|
||||
var xhrverify = new XMLHttpRequest();
|
||||
xhrverify.open('post', 'http://www.selmerbot.com/verifypremium/', true);
|
||||
@@ -460,6 +462,7 @@
|
||||
}
|
||||
|
||||
xhrverify.send();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user