refac: remove unused code

This commit is contained in:
sethburkart123
2024-06-19 19:00:50 +10:00
parent 081a1fa96a
commit 0e491edc46
+1 -14
View File
@@ -53,20 +53,7 @@ function createHomeButton() {
async function handleUserInfo() { async function handleUserInfo() {
try { try {
const response = await fetch(`${location.origin}/seqta/student/login`, { const info = await getUserInfo();
method: 'POST',
headers: {
'Content-Type': 'application/json; charset=utf-8',
},
body: JSON.stringify({
mode: 'normal',
query: null,
redirect_url: location.origin,
}),
});
const responseData = await response.json();
let info = responseData.payload;
updateUserInfo(info); updateUserInfo(info);
} catch (error) { } catch (error) {
console.error('Error fetching and processing student data:', error); console.error('Error fetching and processing student data:', error);