Skip to content

Commit

Permalink
Capture & display errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmasson committed Sep 22, 2019
1 parent 9ba0c8d commit 9cbfa78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/mathcell.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

window.onerror = function( message ) {
document.getElementById( this.id + 'output' ).innerHTML = message;
}

function MathCell( id, inputs, config={} ) {

function labeledInteract( input ) {
Expand Down
4 changes: 4 additions & 0 deletions src/core.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

window.onerror = function( message ) {
document.getElementById( this.id + 'output' ).innerHTML = message;
}

function MathCell( id, inputs, config={} ) {

function labeledInteract( input ) {
Expand Down

0 comments on commit 9cbfa78

Please sign in to comment.