From 0e491edc46aaa80703e036af4c5a41fcd55b30c5 Mon Sep 17 00:00:00 2001 From: sethburkart123 Date: Wed, 19 Jun 2024 19:00:50 +1000 Subject: [PATCH] refac: remove unused code --- src/seqta/ui/AddBetterSEQTAElements.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/seqta/ui/AddBetterSEQTAElements.ts b/src/seqta/ui/AddBetterSEQTAElements.ts index 302d540f..529e929e 100644 --- a/src/seqta/ui/AddBetterSEQTAElements.ts +++ b/src/seqta/ui/AddBetterSEQTAElements.ts @@ -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);