Skip to content

Commit

Permalink
nog eens
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrichau committed Jan 28, 2024
1 parent 3361613 commit 12a2819
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ javascript
errorHandlerFunction

^ (JSStream on: 'document.getElementById("result").style.backgroundColor = "Red"'),
(JSStream on: 'document.getElementById("result").innerHTML = "<p>Error: "+response.statusText+"</p>"'),
(JSStream on: 'document.getElementById("result").innerHTML = "<p>Error</p>"'),
(JSStream on: 'document.getElementById("result-contents").innerHTML = ""; response.text().then((text) => document.getElementById("result-contents").innerHTML += "<p>"+text+"</p>")')
asFunction: #( 'response' )

0 comments on commit 12a2819

Please sign in to comment.