Spaces:
Build error
Build error
Download frontend/src/lib/selectedProcess.ts from shiva0013/YT-AI-Automation: direct link, hf CLI and curl.
- Browser
- Download file 548 Bytes
-
https://huggingface.co/spaces/shiva0013/YT-AI-Automation/resolve/main/frontend/src/lib/selectedProcess.ts
- Command line
-
hf download hf://spaces/shiva0013/YT-AI-Automation/frontend/src/lib/selectedProcess.ts
-
curl -L -o selectedProcess.ts https://huggingface.co/spaces/shiva0013/YT-AI-Automation/resolve/main/frontend/src/lib/selectedProcess.ts
548 Bytes
| export const SELECTED_PROCESS_KEY = 'textbro:selected-process:v1' | |
| export const SELECTED_PROCESS_EVENT = 'textbro:selected-process-change' | |
| export function readSelectedProcessId(): string | null { | |
| if (typeof window === 'undefined') return null | |
| return window.localStorage.getItem(SELECTED_PROCESS_KEY) | |
| } | |
| export function writeSelectedProcessId(id: string): void { | |
| if (typeof window === 'undefined') return | |
| window.localStorage.setItem(SELECTED_PROCESS_KEY, id) | |
| window.dispatchEvent(new CustomEvent(SELECTED_PROCESS_EVENT, { detail: id })) | |
| } | |