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

JS-3680: remove api handler to fix second handler attempt

This commit is contained in:
Andrew Simachev 2023-12-29 13:35:22 +01:00
parent 4edf9bbd30
commit ab477c7e19
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8

View file

@ -125,6 +125,7 @@ function createWindow () {
MenuManager.initMenu();
MenuManager.initTray();
ipcMain.removeHandler('Api');
ipcMain.handle('Api', (e, id, cmd, args) => {
const Api = require('./electron/js/api.js');
const win = BrowserWindow.fromId(id);