diff options
author | Ajay Ramachandran <[email protected]> | 2021-08-01 17:33:37 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-08-01 17:33:37 -0400 |
commit | de1f18612ff4fd507a6d6821003131a7513847a5 (patch) | |
tree | e28d37bac9bf21f8a45f9a63e6ccec106125a407 | |
parent | ba37f5885a3b5b3ab36a6d9ec137644bb94e4053 (diff) | |
download | SponsorBlock-de1f18612ff4fd507a6d6821003131a7513847a5.tar.gz SponsorBlock-de1f18612ff4fd507a6d6821003131a7513847a5.zip |
Send user agent when getting segments
-rw-r--r-- | src/content.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |