Add prefilter that improves jQuery AJAX

semi-fullscreen
Frode Petterson 2018-11-02 10:14:35 +01:00
parent 6b3b3db575
commit 39fc577fd5
1 changed files with 5 additions and 0 deletions

5
js/jquery.js vendored
View File

@ -13,3 +13,8 @@ var H5P = window.H5P = window.H5P || {};
* @member
*/
H5P.jQuery = jQuery.noConflict(true);
H5P.jQuery.ajaxPrefilter(function (s) {
if (s.crossDomain) {
s.contents.script = false;
}
});