improve native isolation
This commit is contained in:
parent
3f57682a9b
commit
9748b98163
15 changed files with 341 additions and 95 deletions
|
|
@ -15,6 +15,8 @@ function singleSlot(channel) {
|
|||
}
|
||||
|
||||
const onImportProgress = singleSlot('import:progress')
|
||||
// "Open with" into an isolated app: the document is copied first
|
||||
const onHandoffProgress = singleSlot('handoff:progress')
|
||||
// "Open with PLWL": files handed over via --open (Exec %f).
|
||||
const onOpenWith = singleSlot('openwith:file')
|
||||
// one sync (and one pending consent request, enforced server-side) at a time
|
||||
|
|
@ -84,6 +86,7 @@ contextBridge.exposeInMainWorld('plwl', {
|
|||
shellOpenPath: p => ipcRenderer.invoke('shell:openPath', p),
|
||||
shellShowItemInFolder: p => ipcRenderer.invoke('shell:showItemInFolder', p),
|
||||
onImportProgress: onImportProgress,
|
||||
onHandoffProgress: onHandoffProgress,
|
||||
onGamesChanged: cb => ipcRenderer.on('games:changed', () => cb()),
|
||||
lansyncGet: () => ipcRenderer.invoke('lansync:get'),
|
||||
lansyncDevices: () => ipcRenderer.invoke('lansync:devices'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue