mirror of
https://github.com/Hopiu/postal.js.git
synced 2026-03-23 17:30:27 +00:00
1 line
No EOL
299 B
JavaScript
1 line
No EOL
299 B
JavaScript
postal.addWireTap(function(a,b){var c=_.extend(b,{data:a});if(!JSON)throw"This browser or environment does not provide JSON support";try{console.log(JSON.stringify(c))}catch(d){try{c.data="ERROR: "+d.message,console.log(JSON.stringify(c))}catch(e){console.log("Unable to parse data to JSON: "+d)}}}) |