(cq) replace var with let
This commit is contained in:
parent
d3b3989e02
commit
f058ec10d3
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue