Spaces:
Paused
Paused
Download node_modules/@huggingface/hub/src/utils/isBackend.ts from Leon4gr45/nova-header-nav: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/spaces/Leon4gr45/nova-header-nav/resolve/main/node_modules/%40huggingface/hub/src/utils/isBackend.ts
- Command line
-
hf download hf://spaces/Leon4gr45/nova-header-nav/node_modules/@huggingface/hub/src/utils/isBackend.ts
-
curl -L -o isBackend.ts https://huggingface.co/spaces/Leon4gr45/nova-header-nav/resolve/main/node_modules/%40huggingface/hub/src/utils/isBackend.ts
271 Bytes
| const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined"; | |
| const isWebWorker = | |
| typeof self === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope"; | |
| export const isBackend = !isBrowser && !isWebWorker; | |