We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 690f071 commit 5a1b815Copy full SHA for 5a1b815
devtools/src/content-script/contentScript.js
@@ -39,9 +39,15 @@ function init() {
39
});
40
41
if (data.highlight) {
42
+ const selector = result.elements.map((x) => x.cssPath).join(', ');
43
+ const nodes =
44
+ result.elements.length > 0
45
+ ? Array.from(document.body.querySelectorAll(selector))
46
+ : [];
47
+
48
hook.highlighter.highlight({
- nodes: (result.elements || []).map((x) => x.target),
- hideAfterTimeout: data.hideAfterTimeout,
49
+ nodes,
50
+ hideAfterTimeout: data.hideAfterTimeout ?? 1500,
51
52
}
53
0 commit comments