Download packages/desktop/src/renderer/window-fullscreen.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 261 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/desktop/src/renderer/window-fullscreen.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/desktop/src/renderer/window-fullscreen.ts
-
curl -L -o window-fullscreen.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/desktop/src/renderer/window-fullscreen.ts
261 Bytes
| import { createSignal } from "solid-js" | |
| const [windowFullscreen, setWindowFullscreen] = createSignal(false) | |
| window.api.onWindowFullscreenChanged(setWindowFullscreen) | |
| void window.api.getWindowFullscreen().then(setWindowFullscreen) | |
| export { windowFullscreen } | |