summaryrefslogtreecommitdiff
path: root/ui/app
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-03-28 13:35:56 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-04-03 15:41:19 +0200
commitef804c1fd5a8ae307aca70853c9224b63d14a731 (patch)
tree97e69bc1ca54b3dbb43e7215a15b2f5415f5dedd /ui/app
parentb71f8be2993c887130a00390e46615c882de6655 (diff)
[feat] add a check for the installation of the helpers to the API
- Resolves: #8786
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/lib/bitmask.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js
index b0ada5b9..dd914369 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]);
},
/**