Put some logs in the Java things, got an error cause i defined the wrong function name

This commit is contained in:
Michael Bykovski
2017-07-11 16:45:27 +02:00
parent ac5b47b1a0
commit 7c1607448e
3 changed files with 26 additions and 8 deletions
+5 -1
View File
@@ -1,12 +1,16 @@
var WEBSERVER_CLASS = "Webserver";
exports.start = function(success_callback, error_callback, port) {
var params = [];
if (port) {
params.push(port);
}
cordova.exec(
success_callback,
error_callback,
WEBSERVER_CLASS,
"start",
[port]
params
);
};