mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 07:00:47 +02:00
Remove unused variable
GitOrigin-RevId: 57b864aff3317513f981b101feafac28d3379403
This commit is contained in:
@@ -21,8 +21,8 @@ if (footerLanguageElement) {
|
||||
|
||||
const allTooltips = document.querySelectorAll('[data-bs-toggle="tooltip"]')
|
||||
allTooltips.forEach(element => {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const tooltip = new Tooltip(element)
|
||||
// eslint-disable-next-line no-new
|
||||
new Tooltip(element)
|
||||
})
|
||||
|
||||
const possibleBadgeTooltips = document.querySelectorAll('[data-badge-tooltip]')
|
||||
@@ -36,8 +36,8 @@ possibleBadgeTooltips.forEach(element => {
|
||||
if (element.parentElement) {
|
||||
const parentWidth = getElementWidth(element.parentElement)
|
||||
if (element.scrollWidth > parentWidth) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const tooltip = new Tooltip(element)
|
||||
// eslint-disable-next-line no-new
|
||||
new Tooltip(element)
|
||||
} else {
|
||||
element.parentElement.style.maxWidth = 'none'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user