Skip to content

Commit

Permalink
Remove type check for audio/video media requests
Browse files Browse the repository at this point in the history
  • Loading branch information
pinanks committed Apr 26, 2024
1 parent a21373e commit 7dc22f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/processSnapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default async (snapshot: Snapshot, ctx: Context): Promise<Record<string,

try {
// abort audio/video media requests
if (request.resourceType() === 'media' && /\.(mp3|mp4|wav|ogg|webm)$/i.test(request.url())) {
if (/\.(mp3|mp4|wav|ogg|webm)$/i.test(request.url())) {
throw new Error('resource type mp3/mp4/wav/ogg/webm');
}

Expand Down

0 comments on commit 7dc22f0

Please sign in to comment.