diff options
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 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]); }, /** |