Sha256: 201551726f7159303fbf630bc94f777fd6b06c04f13d86d7e38a6e20cc78b1ba

Contents?: true

Size: 311 Bytes

Versions: 2

Compression:

Stored size: 311 Bytes

Contents

(function(window) {

  var previousOnError = window.onerror

  window.onerror = function(msg, url, line) {
    $.post('/javascript-errors', { msg: msg, url: url, line: line })

    if (previousOnError)
      previousOnError(msg, url, line)

    return false // use the browser's default handler
  }

})(window)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
raise_js-0.0.2 app/assets/javascripts/raise_js.js
raise_js-0.0.1 app/assets/javascripts/raise_js.js