diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-02-18 15:00:41 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-02-19 11:42:52 +0100 |
| commit | 853718576e8ef0f30e98e6edd92f4009b47220bd (patch) | |
| tree | b8b7f93313300a1e91fddce360390ae8896b6137 /gui | |
| parent | 1488805f471d0315ff185306a7d15b5f57e640dc (diff) | |
| download | mullvadvpn-853718576e8ef0f30e98e6edd92f4009b47220bd.tar.xz mullvadvpn-853718576e8ef0f30e98e6edd92f4009b47220bd.zip | |
Fix linter problems caused by @typescript-eslint/no-var-requires
Diffstat (limited to 'gui')
| -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; |
