-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.js
23 lines (17 loc) · 870 Bytes
/
popup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// fetch("https://sharegpt.com/api/auth/csrf").then(async (res) => {
// const json = await res.json();
// const csrf = json.csrfToken;
// document.querySelector("#csrfToken-google").value = csrf;
// document.querySelector("#csrfToken-twitter").value = csrf;
// });
// fetch("https://sharegpt.com/api/auth/session").then(async (res) => {
// const json = await res.json();
// document.querySelector("#loading-div").style.display = "none";
// //user is logged in by default
// document.querySelector("#session-div").style.display = "flex";
// const { user } = json;
// document.querySelector("#session-image").src = user.image;
// document.querySelector("#session-name").innerHTML = user.name;
// document.querySelector("#session-username").innerHTML = user.username;
// });
// return JSON.stringify(conversationData.items)