From 0812b5a563d4cf754595c905183618bbebe2cf55 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Mon, 12 Dec 2016 02:29:46 +0100 Subject: [refactor] slice the js library after api changes --- ui/app/lib/bitmask.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui') diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js index f388e95f..9526cb01 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(); -- cgit v1.2.3