File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,17 +8,28 @@ let scripts = [
88includeJsAndCss ( scripts , ( ) => {
99 window . onload = function ( ) {
1010 if ( window . jo_doc . startsWith ( "http" ) ) {
11- $ . ajax ( {
12- url : window . jo_doc ,
13- type :"get" ,
14- dataType :'text' ,
15- success : function ( data ) {
16- initScripts ( data ) ;
17- } ,
18- error :function ( ) {
19- alert ( "Fehler beim Laden von " + jo_doc ) ;
20- }
21- } ) ;
11+
12+ fetch ( window . jo_doc , {
13+ method : "GET"
14+ } ) . then ( ( response ) => {
15+ response . json ( ) . then ( ( data ) => {
16+ initScripts ( data ) ;
17+ } )
18+ } ) . catch ( ( ) => {
19+ alert ( "Fehler beim Laden von " + jo_doc )
20+ } )
21+
22+ // $.ajax({
23+ // url: window.jo_doc,
24+ // type:"get",
25+ // dataType:'text',
26+ // success: function(data){
27+ // initScripts(data);
28+ // },
29+ // error:function() {
30+ // alert("Fehler beim Laden von " + jo_doc);
31+ // }
32+ // });
2233 } else {
2334 initScripts ( window . jo_doc ) ;
2435 }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments