Download frontend/src/components/image-preview/debug.ts from Bin29/ManimCat: direct link, hf CLI and curl.
- Browser
- Download file 483 Bytes
-
https://huggingface.co/spaces/Bin29/ManimCat/resolve/main/frontend/src/components/image-preview/debug.ts
- Command line
-
hf download hf://spaces/Bin29/ManimCat/frontend/src/components/image-preview/debug.ts
-
curl -L -o debug.ts https://huggingface.co/spaces/Bin29/ManimCat/resolve/main/frontend/src/components/image-preview/debug.ts
483 Bytes
| export function debugImageLightbox(event: string, payload: Record<string, unknown>): void { | |
| if (typeof window === 'undefined') { | |
| return | |
| } | |
| const debugFlag = window.localStorage.getItem('manimcat:debug:image-lightbox') | |
| const globalDebug = (window as typeof window & { __MANIMCAT_DEBUG_IMAGE_LIGHTBOX__?: boolean }).__MANIMCAT_DEBUG_IMAGE_LIGHTBOX__ | |
| if (debugFlag !== '1' && globalDebug !== true) { | |
| return | |
| } | |
| console.debug(`[image-lightbox] ${event}`, payload) | |
| } | |