Skip to content

Commit 6477673

Browse files
committed
fix: Use window.fetch instead of unpatched fetch in load functions
1 parent 1c1ddd5 commit 6477673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/kit/src/runtime/client/fetcher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function initial_fetch(resource, opts) {
8686
return Promise.resolve(new Response(body, init));
8787
}
8888

89-
return native_fetch(resource, opts);
89+
return window.fetch(resource, opts);
9090
}
9191

9292
/**
@@ -112,7 +112,7 @@ export function subsequent_fetch(resource, resolved, opts) {
112112
}
113113
}
114114

115-
return native_fetch(resolved, opts);
115+
return window.fetch(resource, opts);
116116
}
117117

118118
/**

0 commit comments

Comments
 (0)