Spaces:
Paused
Paused
Download node_modules/msw/src/browser/utils/getAbsoluteWorkerUrl.ts from sam522/GenAI_Course: direct link, hf CLI and curl.
- Browser
- Download file 234 Bytes
-
https://huggingface.co/spaces/sam522/GenAI_Course/resolve/d5f6ff8f3524dfe291fcaaa9fa0d5a9814d47ecc/node_modules/msw/src/browser/utils/getAbsoluteWorkerUrl.ts
- Command line
-
hf download hf://spaces/sam522/GenAI_Course@d5f6ff8f3524dfe291fcaaa9fa0d5a9814d47ecc/node_modules/msw/src/browser/utils/getAbsoluteWorkerUrl.ts
-
curl -L -o getAbsoluteWorkerUrl.ts https://huggingface.co/spaces/sam522/GenAI_Course/resolve/d5f6ff8f3524dfe291fcaaa9fa0d5a9814d47ecc/node_modules/msw/src/browser/utils/getAbsoluteWorkerUrl.ts
234 Bytes
| /** | |
| * Returns an absolute Service Worker URL based on the given | |
| * relative URL (known during the registration). | |
| */ | |
| export function getAbsoluteWorkerUrl(workerUrl: string): string { | |
| return new URL(workerUrl, location.href).href | |
| } | |