mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
Send user agent when getting segments
This commit is contained in:
@@ -596,7 +596,8 @@ async function sponsorsLookup(id: string, keepOldSubmissions = true) {
|
||||
// Check for hashPrefix setting
|
||||
const hashPrefix = (await utils.getHash(id, 1)).substr(0, 4);
|
||||
const response = await utils.asyncRequestToServer('GET', "/api/skipSegments/" + hashPrefix, {
|
||||
categories
|
||||
categories,
|
||||
userAgent: `${chrome.runtime.id}`
|
||||
});
|
||||
|
||||
if (response?.ok) {
|
||||
|
||||
Reference in New Issue
Block a user