Bugfixes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
exports.__esModule = true;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var axios_1 = require("axios");
|
||||
module.exports = function (api) {
|
||||
api.registerAction('startStopVideo', require('./actions/startStopVideo'));
|
||||
@@ -11,11 +11,12 @@ module.exports = function (api) {
|
||||
api.registerAction('screenshot', require('./actions/screenshot'));
|
||||
api.registerConnectionValidator('zoom-bridge', function (validatorAPI) {
|
||||
if (validatorAPI.properties.ip != undefined && validatorAPI.properties.port != undefined) {
|
||||
axios_1["default"]
|
||||
.get("http://" + validatorAPI.properties.ip + ":" + validatorAPI.properties.port + "/v1/ping")
|
||||
axios_1.default
|
||||
.get("http://".concat(validatorAPI.properties.ip, ":").concat(validatorAPI.properties.port, "/v1/ping"))
|
||||
.then(function () {
|
||||
validatorAPI.callback(true);
|
||||
})["catch"](function () {
|
||||
})
|
||||
.catch(function () {
|
||||
validatorAPI.callback(false, 'Unable to reach Zoom-Bridge');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user