From ef804c1fd5a8ae307aca70853c9224b63d14a731 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Tue, 28 Mar 2017 13:35:56 +0200 Subject: [feat] add a check for the installation of the helpers to the API - Resolves: #8786 --- ui/app/lib/bitmask.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ui/app/lib') 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} 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]); }, /** -- cgit v1.2.3