Skip to content

Commit 530dbc6

Browse files
committed
Moved registerMenu to file scope.
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent 0fa99b1 commit 530dbc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/ipc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
const fs = require('fs')
2+
const registerMenu = require('./menu.js')
3+
24
const {
35
openFolderDialog,
46
listFolder,
@@ -130,7 +132,6 @@ module.exports = function registerIPCHandlers(win, ipcMain, app, dialog) {
130132
})
131133

132134
ipcMain.handle('update-menu-state', (event, state) => {
133-
const registerMenu = require('./menu.js')
134135
registerMenu(win, state)
135136
})
136137

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy