diff options
Diffstat (limited to 'packages/meshbay-client/src/preload.js')
| -rw-r--r-- | packages/meshbay-client/src/preload.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/meshbay-client/src/preload.js b/packages/meshbay-client/src/preload.js index 97a5063..1aa16e5 100644 --- a/packages/meshbay-client/src/preload.js +++ b/packages/meshbay-client/src/preload.js @@ -41,8 +41,15 @@ contextBridge.exposeInMainWorld('meshbay', { localFolders: true, nativeSave: true, lanCast: true, + // Linux only for now -- Windows is being done on that OS. Declared per + // platform rather than always: a button that hides the window somewhere the + // desktop shows no indicator would hide it for good. + tray: process.platform === 'linux', }, + // Labels are passed in because the main process has no i18n; see main.js. + minimizeToTray: (labels) => ipcRenderer.invoke('window:minimize-to-tray', labels), + // Ask the main process to call the hub. The renderer has an `app://` origin, // which CORS refuses and which is not a credential anyway. fetch: (url, init) => ipcRenderer.invoke('hub:fetch', url, init), |