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