diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-07-07 12:52:46 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-07-07 16:29:02 +0200 |
| commit | ea25ebc2cdf38fd128a817072e34a0518ea0417c (patch) | |
| tree | 32717a8b1f05a2adf6a04955c39657988dadeaee /app/app.js | |
| parent | 3d74d593111953ba7e79eed62447edbb054a9fca (diff) | |
| download | mullvadvpn-ea25ebc2cdf38fd128a817072e34a0518ea0417c.tar.xz mullvadvpn-ea25ebc2cdf38fd128a817072e34a0518ea0417c.zip | |
Remove persistent storage
Diffstat (limited to 'app/app.js')
| -rw-r--r-- | app/app.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/app/app.js b/app/app.js index f829e4bd29..7710ff1acf 100644 --- a/app/app.js +++ b/app/app.js @@ -10,11 +10,8 @@ import { webFrame, ipcRenderer } from 'electron'; import log from 'electron-log'; import makeRoutes from './routes'; import configureStore from './redux/store'; -import accountActions from './redux/account/actions'; -import connectionActions from './redux/connection/actions'; import { Backend } from './lib/backend'; -import type { LoginState } from './redux/account/reducers'; import type { ConnectionState } from './redux/connection/reducers'; import type { TrayIconType } from './lib/tray-icon-manager'; @@ -64,21 +61,6 @@ updateTrayIcon(); ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// -// reset login state if user quit the app during login -if((['logging in', 'failed']: Array<LoginState>).includes(store.getState().account.status)) { - store.dispatch(accountActions.loginChange({ - status: 'none' - })); -} - -// reset connection state if user quit the app when logging in -if(store.getState().connection.status === 'logging in') { - store.dispatch(connectionActions.connectionChange({ - status: 'disconnected' - })); -} - - // disable smart pinch. webFrame.setZoomLevelLimits(1, 1); |
