aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-03-10 10:22:53 -0500
committerAjay <[email protected]>2022-03-10 10:22:53 -0500
commit54013681ef5365669fcabc8c95ff0de76419c441 (patch)
tree80aa0da6f1eb09babf53a2b0f6a382d34dc9567c
parenteffac2449a0e605078e39fa039583e9f4047eae5 (diff)
downloadSponsorBlock-54013681ef5365669fcabc8c95ff0de76419c441.tar.gz
SponsorBlock-54013681ef5365669fcabc8c95ff0de76419c441.zip
Ask for specific values
-rw-r--r--src/popup.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/popup.ts b/src/popup.ts
index 6f05583f..bd743605 100644
--- a/src/popup.ts
+++ b/src/popup.ts
@@ -167,7 +167,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
PageElements.showNoticeAgain.style.display = "unset";
}
- utils.sendRequestToServer("GET", "/api/userInfo?userID=" + Config.config.userID, (res) => {
+ utils.sendRequestToServer("GET", "/api/userInfo?value=userName&value=viewCount&value=minutesSaved&userID=" + Config.config.userID, (res) => {
if (res.status === 200) {
const userInfo = JSON.parse(res.responseText)
PageElements.usernameValue.innerText = userInfo.userName