Skip to content

Commit

Permalink
Improve variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
imacrayon committed Feb 9, 2024
1 parent a90ced7 commit da92f36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,14 @@ async function render(request, targets, el, config) {

if (!dispatch(el, 'ajax:before')) return

let header = []
let targetIds = []
targets.forEach(target => {
target.setAttribute('aria-busy', 'true')
header.push(target.id)
targetIds.push(target.id)
})

request.headers['X-Alpine-Request'] = 'true'
request.headers['X-Alpine-Target'] = header.join(' ')
request.headers['X-Alpine-Target'] = targetIds.join(' ')
let response = await send(request, config.followRedirects)

if (response.ok) {
Expand Down

0 comments on commit da92f36

Please sign in to comment.