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

This commit is contained in:
Erik Ziegler 2020-07-24 11:10:38 +02:00 committed by GitHub
parent 4528ee9175
commit 9df57e7f7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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] || {};