Skip to content

Commit 432d9d7

Browse files
committed
fix(core): Check fetch support with data URL
1 parent 2deb000 commit 432d9d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/utils/supports.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ function _isFetchSupported(): boolean {
8080

8181
try {
8282
new Headers();
83-
new Request('http://www.example.com');
83+
// Deno requires a valid URL so '' cannot be used as an argument
84+
new Request('data:,');
8485
new Response();
8586
return true;
8687
} catch {

0 commit comments

Comments
 (0)