OHIF-322: Fix tool settings to stop referencing function name because it breaks on minification (#1919)

This commit is contained in:
Erik Ziegler authored and GitHub committed 2020-07-24 11:10:38 +02:00
1 parent 4528ee9175
commit 9df57e7f7f
1 file changed
+1 -1
+1 -1
View File
@@ -196,7 +196,7 @@ export default function init({ servicesManager, configuration }) {
/* Add tools with its custom props through extension configuration. */
tools.forEach(tool => {
const toolName = tool.name.replace('Tool', '');
const toolName = new tool().name;
const externalToolsConfig = configuration.tools || {};
const externalToolProps = externalToolsConfig[toolName] || {};
const internalToolProps = internalToolsConfig[toolName] || {};