()
| 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) |