mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +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
|
// Check for hashPrefix setting
|
||||||
const hashPrefix = (await utils.getHash(id, 1)).substr(0, 4);
|
const hashPrefix = (await utils.getHash(id, 1)).substr(0, 4);
|
||||||
const response = await utils.asyncRequestToServer('GET', "/api/skipSegments/" + hashPrefix, {
|
const response = await utils.asyncRequestToServer('GET', "/api/skipSegments/" + hashPrefix, {
|
||||||
categories
|
categories,
|
||||||
|
userAgent: `${chrome.runtime.id}`
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response?.ok) {
|
if (response?.ok) {
|
||||||
|
|||||||
Reference in New Issue
Block a user