use const instead of let

This commit is contained in:
Daniel Waxweiler 2021-11-01 20:57:34 +01:00
parent 0ed7a57a01
commit 2725707296
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ const NAME = '<wordpress-name>'
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
const eventLists = document.getElementsByClassName(NAME + '_events-list') const eventLists = document.getElementsByClassName(NAME + '_events-list')
for (let list of eventLists) { for (const list of eventLists) {
const url = list.getAttribute('data-url') + '/api' const url = list.getAttribute('data-url') + '/api'
const limit = parseInt(list.getAttribute('data-maximum')) const limit = parseInt(list.getAttribute('data-maximum'))
const groupName = list.getAttribute('data-group-name') const groupName = list.getAttribute('data-group-name')