diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-07-05 16:40:40 +0300 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-07-05 16:40:40 +0300 |
| commit | d4ca068e723b0dfeda251cfb7e83577bb2425cf6 (patch) | |
| tree | bfce20af674978048536b69264640fc844d174e5 /app | |
| parent | 0255ed043f6a8b4657ee8fdaea71d0b24a7701d7 (diff) | |
| download | mullvadvpn-d4ca068e723b0dfeda251cfb7e83577bb2425cf6.tar.xz mullvadvpn-d4ca068e723b0dfeda251cfb7e83577bb2425cf6.zip | |
sudo-prompt is a dev dependency and is not available in release
Diffstat (limited to 'app')
| -rw-r--r-- | app/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/main.js b/app/main.js index 62d98010ee..ca7ecf7c5d 100644 --- a/app/main.js +++ b/app/main.js @@ -1,7 +1,6 @@ // @flow import path from 'path'; import fs from 'fs'; -import sudo from 'sudo-prompt'; import log from 'electron-log'; import { app, BrowserWindow, ipcMain, Tray, Menu, nativeImage } from 'electron'; import TrayIconManager from './lib/tray-icon-manager'; @@ -64,6 +63,7 @@ const appDelegate = { }, _startBackend: () => { + const sudo = require('sudo-prompt'); const pathToBackend = path.resolve(process.env.MULLVAD_BACKEND || '../talpid_core/target/debug/talpid_daemon'); log.info('Starting the mullvad backend at', pathToBackend); |
