diff options
author | mini-bomba <[email protected]> | 2022-10-29 13:18:41 +0200 |
---|---|---|
committer | mini-bomba <[email protected]> | 2022-10-29 13:20:51 +0200 |
commit | ea73a92fb72973be0a6d4101f229fd75ba6dca34 (patch) | |
tree | cc0320357fc796d801efbde813d226246ac50788 /src/popup.ts | |
parent | d68c3659be89e40ed116c868317d05eee819828b (diff) | |
download | SponsorBlock-ea73a92fb72973be0a6d4101f229fd75ba6dca34.tar.gz SponsorBlock-ea73a92fb72973be0a6d4101f229fd75ba6dca34.zip |
Use publicID instead of privateID for /userInfo calls
This should reduce the load on the server a bit, as it will no longer have to compute the publicID for each sponsorblock user.
This also reduces the list of actions that leak the privateID to the server.
Diffstat (limited to 'src/popup.ts')
-rw-r--r-- | src/popup.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/popup.ts b/src/popup.ts index d2e763f4..d24721b0 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -281,7 +281,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> { if (!Config.config.payments.freeAccess && !noRefreshFetchingChaptersAllowed()) values.push("freeChaptersAccess"); utils.asyncRequestToServer("GET", "/api/userInfo", { - userID: Config.config.userID, + publicUserID: await utils.getHash(Config.config.userID), values }).then((res) => { if (res.status === 200) { @@ -461,7 +461,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> { } else { PageElements.videoFound.innerHTML = chrome.i18n.getMessage("segmentsStillLoading"); } - + PageElements.issueReporterImportExport.classList.remove("hidden"); } } |