mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
refac: remove unused code
This commit is contained in:
@@ -53,20 +53,7 @@ function createHomeButton() {
|
||||
|
||||
async function handleUserInfo() {
|
||||
try {
|
||||
const response = await fetch(`${location.origin}/seqta/student/login`, {
|
||||
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;
|
||||
const info = await getUserInfo();
|
||||
updateUserInfo(info);
|
||||
} catch (error) {
|
||||
console.error('Error fetching and processing student data:', error);
|
||||
|
||||
Reference in New Issue
Block a user