You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
442 B
26 lines
442 B
/* global startIframeTest */
|
|
|
|
var timeoutId, type;
|
|
|
|
function finalize() {
|
|
startIframeTest( type, window.downloadedScriptCalled );
|
|
}
|
|
|
|
timeoutId = setTimeout( function() {
|
|
finalize();
|
|
}, 1000 );
|
|
|
|
jQuery
|
|
.ajax( {
|
|
url: "csp-ajax-script-downloaded.js",
|
|
dataType: "script",
|
|
method: "POST",
|
|
beforeSend: function( _jqXhr, settings ) {
|
|
type = settings.type;
|
|
}
|
|
} )
|
|
.then( function() {
|
|
clearTimeout( timeoutId );
|
|
finalize();
|
|
} );
|