We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff26887 commit a985738Copy full SHA for a985738
packages/sveltekit/src/server/handle.ts
@@ -59,9 +59,10 @@ function sendErrorToSentry(e: unknown): unknown {
59
60
const FETCH_PROXY_SCRIPT = `
61
const f = window.fetch;
62
- if(!f){return}
63
- window._sentryFetchProxy = function(...a){return f(...a)}
64
- window.fetch = function(...a){return window._sentryFetchProxy(...a)}
+ if(f){
+ window._sentryFetchProxy = function(...a){return f(...a)}
+ window.fetch = function(...a){return window._sentryFetchProxy(...a)}
65
+ }
66
`;
67
68
export const transformPageChunk: NonNullable<ResolveOptions['transformPageChunk']> = ({ html }) => {
0 commit comments