#1542 Fix for secirity config

This commit is contained in:
Knut Sveidqvist
2020-07-30 08:20:27 +02:00
parent ecea0f90d4
commit f1836c281c
2 changed files with 6 additions and 5 deletions

View File

@@ -224,7 +224,7 @@ const setTooltip = function(ids, tooltip) {
const setClickFun = function(_id, functionName) {
let id = _id;
if (_id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id;
if (configApi.defaultConfig.securityLevel !== 'loose') {
if (configApi.getConfig().securityLevel !== 'loose') {
return;
}
if (typeof functionName === 'undefined') {