Skip to content

Commit

Permalink
trace
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrichau committed Jan 28, 2024
1 parent 760eb45 commit 3b3a6db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ javascript
errorHandlerFunction

^ (JSStream on: 'document.getElementById("result").style.backgroundColor = "Red"'),
(JSStream on: 'document.getElementById("result").innerHTML = "<p>Error:"+result.text()+"</p>"')
(JSStream on: 'document.getElementById("result").innerHTML = "<p>Error</p>"'),
(JSStream on: 'result.text().then((text) => document.body.innerHTML += "<p>"+text+"</p>")')
asFunction: #( 'result' )
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ javascript
successHandlerFunction

^ (JSStream on: 'document.getElementById("result").style.backgroundColor = "DarkGreen"'),
(JSStream on: 'document.getElementById("result").innerHTML = "<p>Success</p>"')
(JSStream on: 'document.getElementById("result").innerHTML = "<p>Success</p>"'),
(JSStream on: 'result.text().then((text) => document.body.innerHTML += "<p>"+text+"</p>")')
asFunction: #( 'result' )

0 comments on commit 3b3a6db

Please sign in to comment.