(cq) replace var with let

This commit is contained in:
Simon Vieille 2022-08-21 15:58:12 +02:00
parent d3b3989e02
commit f058ec10d3
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -2,7 +2,7 @@ const alwaysDisplayed = function() {
const elements = querySelectorAll('*')
const fixedElements = []
for (var element of elements) {
for (let element of elements) {
if (typeof element !== 'object') {
continue
}
@ -44,7 +44,7 @@ const alwaysDisplayed = function() {
fixedElements.push(element)
}
for (var i in fixedElements) {
for (let i in fixedElements) {
const element = fixedElements[i]
const computedStyle = window.getComputedStyle(element, null)
const left = computedStyle.getPropertyValue('left')