From 1c53ce91f00593235ec821d537bac20cd4f780bc Mon Sep 17 00:00:00 2001 From: Brahma Dev Date: Fri, 29 Sep 2023 21:42:15 +0000 Subject: [PATCH] Ignore the randomly generated classname. --- packages/bruno-app/src/utils/codemirror/brunoVarInfo.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }