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:
parent
6e503a18b8
commit
a13c96a34e
2 changed files with 13 additions and 1 deletions
|
@ -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 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue