Send user agent when getting segments

This commit is contained in:
Ajay Ramachandran
2021-08-01 17:33:37 -04:00
parent ba37f5885a
commit de1f18612f

View File

@@ -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) {