mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
menu help + intercom
This commit is contained in:
parent
acef114119
commit
1586152d95
9 changed files with 26 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
|||
const electron = require('electron');
|
||||
const { app, BrowserWindow, ipcMain } = require('electron');
|
||||
const { app, BrowserWindow, ipcMain, shell } = require('electron');
|
||||
|
||||
function createWindow () {
|
||||
const { width, height } = electron.screen.getPrimaryDisplay().workAreaSize;
|
||||
|
@ -30,6 +30,10 @@ function createWindow () {
|
|||
ipcMain.on('appClose', () => {
|
||||
app.quit();
|
||||
});
|
||||
|
||||
ipcMain.on('urlOpen', async (event, url) => {
|
||||
shell.openExternal(url);
|
||||
});
|
||||
};
|
||||
|
||||
app.on('ready', createWindow);
|
Loading…
Add table
Add a link
Reference in a new issue