diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-12-12 02:29:46 +0100 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-12-29 03:09:56 +0100 |
commit | 0812b5a563d4cf754595c905183618bbebe2cf55 (patch) | |
tree | 00ace04fd2dd0675c1a11dc079bf37a7d81282af /ui/app | |
parent | d6640491fe1e0820aa6cc267c8aba2d731b4e028 (diff) |
[refactor] slice the js library after api changes
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/lib/bitmask.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js index f388e95..9526cb0 100644 --- a/ui/app/lib/bitmask.js +++ b/ui/app/lib/bitmask.js @@ -43,8 +43,8 @@ var bitmask = function(){ } function call(command) { - var url = api_url + command.slice(0, 2).join('/'); - var data = JSON.stringify(command.slice(2)); + var url = api_url + command.slice(0, 3).join('/'); + var data = JSON.stringify(command.slice(3)); return new Promise(function(resolve, reject) { var req = new XMLHttpRequest(); |