Sha256: 2e6e58b3c4ec315eaaa1ace2320ff3c5a69b59edbeab23d53e02a46616231194
Contents?: true
Size: 608 Bytes
Versions: 3
Compression:
Stored size: 608 Bytes
Contents
#Send the error to the same host that served this file (I think) window.onerror = (msg,url,line) -> xmlhttp = if window.XMLHttpRequest new XMLHttpRequest() else new ActiveXObject("Microsoft.XMLHTTP") params = "wat[page_url]=#{escape(window.location.toString())}" params += "&wat[message]=#{escape(msg)}" params += "&wat[backtrace][]=#{escape(url+":"+line)}" xmlhttp.open("POST", "/wats", true); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xmlhttp.send(params); return false;
Version data entries
3 entries across 3 versions & 1 rubygems