diff --git a/packages/bruno-electron/src/index.js b/packages/bruno-electron/src/index.js index 8490411c6..e1b1772fb 100644 --- a/packages/bruno-electron/src/index.js +++ b/packages/bruno-electron/src/index.js @@ -7,7 +7,7 @@ const { setContentSecurityPolicy } = require('electron-util'); const menuTemplate = require('./app/menu-template'); const LastOpenedCollections = require('./app/last-opened-collections'); const registerNetworkIpc = require('./ipc/network'); -const registerLocalCollectionsIpc = require('./ipc/local-collection'); +const registerCollectionsIpc = require('./ipc/collection'); const Watcher = require('./app/watcher'); const lastOpenedCollections = new LastOpenedCollections(); @@ -52,7 +52,7 @@ app.on('ready', async () => { // register all ipc handlers registerNetworkIpc(mainWindow, watcher, lastOpenedCollections); - registerLocalCollectionsIpc(mainWindow, watcher, lastOpenedCollections); + registerCollectionsIpc(mainWindow, watcher, lastOpenedCollections); }); // Quit the app once all windows are closed diff --git a/packages/bruno-electron/src/ipc/local-collection.js b/packages/bruno-electron/src/ipc/local-collection.js index 764f465eb..4758db7cf 100644 --- a/packages/bruno-electron/src/ipc/local-collection.js +++ b/packages/bruno-electron/src/ipc/local-collection.js @@ -421,9 +421,9 @@ const registerMainEventHandlers = (mainWindow, watcher, lastOpenedCollections) = } -const registerLocalCollectionsIpc = (mainWindow, watcher, lastOpenedCollections) => { +const registerCollectionsIpc = (mainWindow, watcher, lastOpenedCollections) => { registerRendererEventHandlers(mainWindow, watcher, lastOpenedCollections); registerMainEventHandlers(mainWindow, watcher, lastOpenedCollections); } -module.exports = registerLocalCollectionsIpc; +module.exports = registerCollectionsIpc;