From f4539da172c60533c98cc703f228591d59ca517d Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Sun, 26 Mar 2017 14:40:29 +0200 Subject: [feat] expose core.version and core.stop in the js API - Resolves: #8802 --- ui/app/lib/bitmask.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'ui/app') diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js index 56ba03d6..b0ada5b9 100644 --- a/ui/app/lib/bitmask.js +++ b/ui/app/lib/bitmask.js @@ -113,6 +113,25 @@ var bitmask = function(){ return { api_token: function() {return api_token}, + + core: { + /** + * Get bitmaskd version + * + * @return {Promise} {'version_core': str} + */ + version: function() { + return call(['core', 'version']); + } + + /** + * Stop bitmaskd + */ + stop: function() { + return call(['core', 'stop']); + } + } + bonafide: { provider: { create: function(domain) { -- cgit v1.2.3