summaryrefslogtreecommitdiff
path: root/ui/app/lib
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-03-01 19:32:54 +0100
committerRuben Pollan <meskio@sindominio.net>2017-03-03 10:50:54 +0100
commit92957c4b666d6e5fc54275d8857692a12b0fb209 (patch)
tree2a0ae0439211b0c6476b5e5854af3db95aedfc4d /ui/app/lib
parent1accda8a692798fccdd67584b1e4950057faddeb (diff)
[feat] get VPN params from eip-service.json
Instead of hardcoding them in the code.
Diffstat (limited to 'ui/app/lib')
-rw-r--r--ui/app/lib/bitmask.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js
index 86646ee..56ba03d 100644
--- a/ui/app/lib/bitmask.js
+++ b/ui/app/lib/bitmask.js
@@ -119,8 +119,11 @@ var bitmask = function(){
return call(['bonafide', 'provider', 'create', domain]);
},
- read: function(domain) {
- return call(['bonafide', 'provider', 'read', domain]);
+ read: function(domain, service) {
+ if (typeof service !== 'string') {
+ service = "";
+ }
+ return call(['bonafide', 'provider', 'read', domain, service]);
},
delete: function(domain) {