From 5ba18b5ee2088352be6705221bf398692fd8ac84 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Thu, 29 Mar 2018 18:13:23 +0100 Subject: [PATCH] Avoid redefining function parameter --- src/IntegrationManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IntegrationManager.js b/src/IntegrationManager.js index 60b0fb534d..6d488d91df 100644 --- a/src/IntegrationManager.js +++ b/src/IntegrationManager.js @@ -45,11 +45,11 @@ export default class IntegrationManager { /** * Launch the integrations manager on the stickers integration page - * @param {string} integType integration / widget type + * @param {string} integName integration / widget type * @param {string} integId integration / widget ID * @param {function} onClose Callback to invoke on integration manager close */ - static async open(integType, integId, onClose) { + static async open(integName, integId, onClose) { await IntegrationManager._init(); const IntegrationsManager = sdk.getComponent("views.settings.IntegrationsManager"); if (global.mxIntegrationManager.error || @@ -57,7 +57,7 @@ export default class IntegrationManager { console.error("Scalar error", global.mxIntegrationManager); return; } - integType = 'type_' + integType; + const integType = 'type_' + integName; const src = (global.mxIntegrationManager.client && global.mxIntegrationManager.client.hasCredentials()) ? global.mxIntegrationManager.client.getScalarInterfaceUrlForRoom( {roomId: RoomViewStore.getRoomId()},