diff --git a/packages/bruno-app/src/utils/codemirror/brunoVarInfo.js b/packages/bruno-app/src/utils/codemirror/brunoVarInfo.js index 50f314dac..d37e10bb6 100644 --- a/packages/bruno-app/src/utils/codemirror/brunoVarInfo.js +++ b/packages/bruno-app/src/utils/codemirror/brunoVarInfo.js @@ -66,8 +66,7 @@ if (!SERVER_RENDERED) { if (target.nodeName !== 'SPAN' || state.hoverTimeout !== undefined) { return; } - - if (target.className !== 'cm-variable-valid') { + if (!target.classList.contains('cm-variable-valid')) { return; }