chore: fix a few security vulnerabilities

This commit is contained in:
Yash-Singh1
2022-04-28 19:29:56 -07:00
parent a62d53e9a7
commit dc53699a96
4 changed files with 37 additions and 14 deletions

View File

@@ -326,7 +326,7 @@ const setupToolTips = function (element) {
tooltipElem.transition().duration(200).style('opacity', '.9');
tooltipElem
.html(el.attr('title'))
.text(el.attr('title'))
.style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')
.style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');
el.classed('hover', true);