diff options
| -rw-r--r-- | app/app.js | 4 | ||||
| -rw-r--r-- | app/lib/backend.js | 28 | ||||
| -rw-r--r-- | app/main.js | 6 | ||||
| -rw-r--r-- | distribution.yml | 4 |
4 files changed, 21 insertions, 21 deletions
diff --git a/app/app.js b/app/app.js index c65bd1b9b5..b732dac7fd 100644 --- a/app/app.js +++ b/app/app.js @@ -22,7 +22,7 @@ const backend = new Backend(); // reset login state if user quit the app during login if([LoginState.connecting, LoginState.failed].includes(store.getState().user.status)) { - store.dispatch(userActions.loginChange({ + store.dispatch(userActions.loginChange({ status: LoginState.none })); } @@ -49,7 +49,7 @@ if(recentLocation && recentLocation.pathname) { * Get tray icon type based on connection state * @param {ConnectionState} s - connection state * @return {TrayIconType} - * + * */ const getIconType = (s) => { switch(s) { diff --git a/app/lib/backend.js b/app/lib/backend.js index 02001fa73d..e93ed3d87a 100644 --- a/app/lib/backend.js +++ b/app/lib/backend.js @@ -12,7 +12,7 @@ import { ConnectionState } from '../enums'; * @property {string} city - location city * @property {string} country - location country * @property {number[]} location - geo coordinate [latitude, longitude] - * + * */ /** @@ -42,34 +42,34 @@ import { ConnectionState } from '../enums'; * * @event Backend.EventType.login * @param {object} response - * @param {error} error + * @param {error} error */ /** * Logging event * * @event Backend.EventType.logging - * @param {object} response + * @param {object} response */ /** * Logout event * - * @event Backend.EventType.logout + * @event Backend.EventType.logout */ /** * Updated IP event * * @event Backend.EventType.updatedIp - * @param {string} new IP address + * @param {string} new IP address */ /** * Updated location event * * @event Backend.EventType.updatedLocation - * @param {object} location data + * @param {object} location data */ /** @@ -94,7 +94,7 @@ class BackendError extends Error { return 'Out of time'; case Backend.ErrorType.noInternetConnection: return 'Offline'; - default: + default: return 'Something went wrong'; } } @@ -105,7 +105,7 @@ class BackendError extends Error { return 'Buy more time, so you can continue using the internet securely'; case Backend.ErrorType.noInternetConnection: return 'Your internet connection will be secured when you get back online'; - default: + default: return ''; } } @@ -285,7 +285,7 @@ export default class Backend extends EventEmitter { */ fastestServer() { return { - address: 'uk.mullvad.net', + address: 'uk.mullvad.net', name: 'Fastest', city: 'London', country: 'United Kingdom', @@ -302,7 +302,7 @@ export default class Backend extends EventEmitter { */ nearestServer() { return { - address: 'es.mullvad.net', + address: 'es.mullvad.net', name: 'Nearest', city: 'Madrid', country: 'Spain', @@ -312,7 +312,7 @@ export default class Backend extends EventEmitter { /** * Log in with mullvad account - * + * * @emits Backend.EventType.logging * @emits Backend.EventType.login * @param {string} account @@ -348,7 +348,7 @@ export default class Backend extends EventEmitter { /** * Log out - * + * * @emits Backend.EventType.logout * @memberOf Backend */ @@ -369,7 +369,7 @@ export default class Backend extends EventEmitter { * Connect to VPN server * @emits Backend.EventType.connecting * @emits Backend.EventType.connect - * + * * @param {string} addr IP address or domain name * * @memberOf Backend @@ -498,7 +498,7 @@ export default class Backend extends EventEmitter { setTimeout(() => { this.emit(Backend.EventType.updatedReachability, navigator.onLine); }, 0); - + window.addEventListener('online', () => { this.emit(Backend.EventType.updatedReachability, true); }); diff --git a/app/main.js b/app/main.js index 09da054238..dd7d195144 100644 --- a/app/main.js +++ b/app/main.js @@ -65,7 +65,7 @@ const createAppMenu = () => { { type: 'separator' }, { role: 'quit' } ] - }, + }, { label: 'Edit', submenu: [ @@ -99,7 +99,7 @@ const createContextMenu = () => { window.inspectElement(props.x, props.y); } }]; - + if(props.isEditable) { let inputMenu = menuTemplate; @@ -110,7 +110,7 @@ const createContextMenu = () => { Menu.buildFromTemplate(inputMenu).popup(window); } else if(isDevelopment) { - // display inspect element for all non-editable + // display inspect element for all non-editable // elements when in development mode Menu.buildFromTemplate(inspectTemplate).popup(window); } diff --git a/distribution.yml b/distribution.yml index 5fc2f9e8d4..9aeb729032 100644 --- a/distribution.yml +++ b/distribution.yml @@ -25,14 +25,14 @@ dmg: y: 150 mac: - target: + target: - dmg category: public.app-category.tools extendInfo: LSUIElement: true win: - target: + target: - nsis linux: |
