UNPKG

postal.diagnostics

Version:

Wiretap add-on for postal.js allowing configurable console.logging (or other) output of messages being published through postal's message bus.

6 lines (5 loc) 250 B
// Use the right jQuery source in iframe tests document.write( "<script id='jquery-js' src='" + parent.document.getElementById("jquery-js").src.replace( /^(?![^\/?#]+:)/, parent.location.pathname.replace( /[^\/]$/, "$0/" ) ) + "'><\x2Fscript>" );