Skip to content

Commit

Permalink
Allow raw response text to be read from event listeners (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
justisr authored Nov 4, 2024
1 parent 333fc9d commit 20fb24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ async function send(control, action = '', method = 'GET', body = null, enctype =
let text = await response.text()
let wrapper = document.createRange().createContextualFragment('<template>' + text + '</template>')
response.html = wrapper.firstElementChild.content

response.raw = text
return response
})

Expand Down

0 comments on commit 20fb24a

Please sign in to comment.