mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
refac: remove unused code
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user