mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-24 18:51:24 +00:00
added preview mode
This commit is contained in:
@@ -14,7 +14,11 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
||||
contextBridge.exposeInMainWorld('electron', {
|
||||
onUpdateAvailable: (callback) => ipcRenderer.on('update_available', callback),
|
||||
onUpdateDownloaded: (callback) => ipcRenderer.on('update_downloaded', callback),
|
||||
restartApp: () => ipcRenderer.send('restart_app')
|
||||
restartApp: () => ipcRenderer.send('restart_app'),
|
||||
selectFile: async () => ipcRenderer.invoke('dialog:openFile'),
|
||||
readFile: async (filePath) => ipcRenderer.invoke('fs:readFile', filePath),
|
||||
selectAndZipDirectory: async (filePath) => ipcRenderer.invoke('fs:selectAndZip', filePath),
|
||||
|
||||
});
|
||||
|
||||
ipcRenderer.send('test-ipc');
|
Reference in New Issue
Block a user