mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
6 lines
250 B
JavaScript
6 lines
250 B
JavaScript
|
// 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>" );
|