Skip to content

Commit 7dc22f0

Browse files
committed
Remove type check for audio/video media requests
1 parent a21373e commit 7dc22f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/processSnapshot.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default async (snapshot: Snapshot, ctx: Context): Promise<Record<string,
2424

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

0 commit comments

Comments
 (0)