Bugfixes
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
||||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
||||
to[j] = from[i];
|
||||
return to;
|
||||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
||||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
||||
if (ar || !(i in from)) {
|
||||
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
||||
ar[i] = from[i];
|
||||
}
|
||||
}
|
||||
return to.concat(ar || Array.prototype.slice.call(from));
|
||||
};
|
||||
exports.__esModule = true;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.simpleCommandEditor = exports.simpleCommandHandle = void 0;
|
||||
function simpleCommandHandle(actionAPI, command, properties, status) {
|
||||
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
|
||||
@@ -19,7 +23,7 @@ function simpleCommandHandle(actionAPI, command, properties, status) {
|
||||
status('Command complete', 'info');
|
||||
});
|
||||
command.on('error', function (error) {
|
||||
status("Command error: " + error.message, 'info');
|
||||
status("Command error: ".concat(error.message), 'info');
|
||||
});
|
||||
camera.sendCommand(command);
|
||||
}
|
||||
@@ -47,7 +51,7 @@ function simpleCommandEditor(editorAPI, properties, additionalFields) {
|
||||
});
|
||||
editorAPI.setFields(__spreadArray([
|
||||
connectionField
|
||||
], additionalFields));
|
||||
], additionalFields, true));
|
||||
}
|
||||
exports.simpleCommandEditor = simpleCommandEditor;
|
||||
//# sourceMappingURL=simpleCommandHandler.js.map
|
||||
Reference in New Issue
Block a user