1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-02-16 11:41:24 +01:00

use const instead of let

This commit is contained in:
Daniel Waxweiler 2021-11-01 20:57:34 +01:00
parent 0ed7a57a01
commit 2725707296

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')