MCPcopy Create free account
hub / github.com/Moebytes/Frame-Player / getOpenedFile

Function getOpenedFile

components/VideoPlayer.tsx:127–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125
126 useEffect(() => {
127 const getOpenedFile = async () => {
128 const file = await window.ipcRenderer.invoke("get-opened-file")
129 if (file) upload(file)
130 }
131 getOpenedFile()
132 const openFile = (event: any, file: string) => {
133 if (file) upload(file)

Callers 1

VideoPlayerFunction · 0.85

Calls 1

uploadFunction · 0.85

Tested by

no test coverage detected