diff --git a/packages/web/src.ts/index.ts b/packages/web/src.ts/index.ts index 4d78ef0cf6..92ac6ccbb6 100644 --- a/packages/web/src.ts/index.ts +++ b/packages/web/src.ts/index.ts @@ -49,6 +49,8 @@ export type ConnectionInfo = { throttleSlotInterval?: number; throttleCallback?: (attempt: number, url: string) => Promise, + skipFetchSetup?: boolean; + timeout?: number, }; @@ -149,6 +151,10 @@ export function _fetchData(connection: string | ConnectionInfo, value: "Basic " + base64Encode(toUtf8Bytes(authorization)) }; } + + if (connection.skipFetchSetup != null) { + options.skipFetchSetup = !!connection.skipFetchSetup; + } } const reData = new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$", "i"); const dataMatch = ((url) ? url.match(reData): null);