use const instead of let
This commit is contained in:
parent
0ed7a57a01
commit
2725707296
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue