|
|
@@ -14,7 +14,7 @@ async function tryUntilItWorks(func, delayBetweenTries = 1, maxTries = 10) { |
|
|
|
|
|
|
|
async function onHeadersReceived({ responseHeaders, url, tabId }) { |
|
|
|
const isAudio = responseHeaders.some(header => |
|
|
|
header.name === 'Content-Type' && header.value.startsWith('audio/') |
|
|
|
header.name.toLowerCase() === 'content-type' && header.value.toLowerCase().startsWith('audio/') |
|
|
|
); |
|
|
|
|
|
|
|
if (isAudio) { |
|
|
|