From de1f18612ff4fd507a6d6821003131a7513847a5 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 1 Aug 2021 17:33:37 -0400 Subject: [PATCH] Send user agent when getting segments --- src/content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 3a9ac67b..e86738b6 100644 --- a/src/content.ts +++ b/src/content.ts @@ -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) {