diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-03-28 13:35:56 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-04-03 15:41:19 +0200 |
commit | ef804c1fd5a8ae307aca70853c9224b63d14a731 (patch) | |
tree | 97e69bc1ca54b3dbb43e7215a15b2f5415f5dedd /ui/app/lib/bitmask.js | |
parent | b71f8be2993c887130a00390e46615c882de6655 (diff) |
[feat] add a check for the installation of the helpers to the API
- Resolves: #8786
Diffstat (limited to 'ui/app/lib/bitmask.js')
-rw-r--r-- | ui/app/lib/bitmask.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js index b0ada5b..dd91436 100644 --- a/ui/app/lib/bitmask.js +++ b/ui/app/lib/bitmask.js @@ -255,10 +255,14 @@ var bitmask = function(){ /** * Check if the VPN is ready to start and has the cert downloaded * - * @return {Promise<bool>} User readable status + * @return {Promise<{'vpn_ready': bool, + * 'installed': bool}>} */ check: function(provider) { - return call(['vpn', 'check', provider]) + if (typeof provider !== 'string') { + provider = ""; + } + return call(['vpn', 'check', provider]); }, /** |