Skip to content

Commit

Permalink
command bug
Browse files Browse the repository at this point in the history
  • Loading branch information
javray committed Oct 24, 2014
1 parent 269d1e8 commit 72fec2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/android/Mikrotik.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public Mikrotik() {

@Override
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {

if (action.equals("connect")) {
String ipAddress = args.getString(0);
int ipPort = args.getInt(1);
Expand Down
3 changes: 1 addition & 2 deletions www/Mikrotik.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Mikrotik.prototype.login = function(arg0, arg1, success, error) {
}

Mikrotik.prototype.command = function(arg0, success, error) {
console.log(arg0);
exec(success, error, "Mikrotik", "login", [arg0]);
exec(success, error, "Mikrotik", "command", [arg0]);
}

module.exports = new Mikrotik();

0 comments on commit 72fec2a

Please sign in to comment.