1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

new windows

This commit is contained in:
Andrew Simachev 2022-06-29 19:43:35 +03:00
parent 6e503a18b8
commit a13c96a34e
2 changed files with 13 additions and 1 deletions

View file

@ -348,6 +348,11 @@ function createWindow () {
});
});
ipcMain.on('windowOpen', (e, route) => {
deeplinkingUrl = route;
createWindow();
});
ipcMain.on('download', async (e, url) => {
const win = BrowserWindow.getFocusedWindow();
await download(win, url, { saveAs: true });