(input: RequestInfo | URL, init?: RequestInit)
| 7 | * @internal |
| 8 | */ |
| 9 | export async function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response> { |
| 10 | // eslint-disable-next-line tldraw/no-restricted-properties |
| 11 | return window.fetch(input, { |
| 12 | // We want to make sure that the referrer is not sent to other domains. |
| 13 | referrerPolicy: 'strict-origin-when-cross-origin', |
| 14 | ...init, |
| 15 | }) |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * Just a wrapper around `new Image`, and yeah, it's a bit strange that it's in the network.ts file |
no test coverage detected
searching dependent graphs…