Spaces:
Running
Running
Download theme.js from MegaPotatoAI/Photo-Enhancer: direct link, hf CLI and curl.
- Browser
- Download file 270 Bytes
-
https://huggingface.co/spaces/MegaPotatoAI/Photo-Enhancer/resolve/main/theme.js
- Command line
-
hf download hf://spaces/MegaPotatoAI/Photo-Enhancer/theme.js
-
curl -L -o theme.js https://huggingface.co/spaces/MegaPotatoAI/Photo-Enhancer/resolve/main/theme.js
270 Bytes
| // Apply ?__theme=light|dark (set by Hugging Face) before the stylesheet paints, so the page does not flash. | |
| (() => { | |
| const t = new URLSearchParams(location.search).get("__theme"); | |
| if (t === "dark" || t === "light") document.documentElement.dataset.theme = t; | |
| })(); | |