diff options
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/index.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index cdca8322d7..6d146eb418 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -1221,6 +1221,7 @@ class ApplicationMain { } private async installDevTools() { + // eslint-disable-next-line @typescript-eslint/no-var-requires const installer = require('electron-devtools-installer'); const extensions = ['REACT_DEVELOPER_TOOLS', 'REDUX_DEVTOOLS']; const forceDownload = !!process.env.UPGRADE_EXTENSIONS; @@ -1401,6 +1402,7 @@ class ApplicationMain { // setup NSEvent monitor to fix inconsistent window.blur on macOS // see https://github.com/electron/electron/issues/8689 private installMacOsMenubarAppWindowHandlers(tray: Tray, windowController: WindowController) { + // eslint-disable-next-line @typescript-eslint/no-var-requires const { NSEventMonitor, NSEventMask } = require('nseventmonitor'); const macEventMonitor = new NSEventMonitor(); const eventMask = NSEventMask.leftMouseDown | NSEventMask.rightMouseDown; |
