mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
custom document backend implemented
This commit is contained in:
@@ -30,6 +30,18 @@ try {
|
||||
file_download: () => {ipcRenderer.send("file_download")}
|
||||
})
|
||||
|
||||
|
||||
|
||||
//documenttypes
|
||||
|
||||
contextBridge.exposeInMainWorld('api', {
|
||||
getTxtFiles: () => ipcRenderer.invoke('get-txt-files'),
|
||||
saveTxtFile: (name, content) =>
|
||||
ipcRenderer.invoke('save-txt-file', name, content),
|
||||
readTxtFile: (fileName) =>
|
||||
ipcRenderer.invoke('read-txt-file', fileName)
|
||||
});
|
||||
|
||||
|
||||
ipcRenderer.on("error", (event, err) => {alert(err)})
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user