1
0
Fork 0
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:
Razor 2019-09-22 13:53:25 +03:00
parent acef114119
commit 1586152d95
9 changed files with 26 additions and 21 deletions

View file

@ -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);