Changes

Jump to navigation Jump to search
no edit summary
Line 210: Line 210:  
    headers = { 'Accept': 'application/sparql-results+json' };
 
    headers = { 'Accept': 'application/sparql-results+json' };
 
    debug("qid: "+ qid + "\ntypeqid: " + typeqid + "\n" + fullUrl + "\n" + sparqlQuery);
 
    debug("qid: "+ qid + "\ntypeqid: " + typeqid + "\n" + fullUrl + "\n" + sparqlQuery);
        fetch( fullUrl, { headers: { 'Accept': 'application/sparql-results+json' } } )
+
        fetch( fullUrl, { headers: { 'Accept': 'application/sparql-results+json' }, } )
        .then( body => body.json() )
+
        .then( body => { body.json() } )
 
        .then( json => { if ( json.boolean ) quickpresets_addinterface(qid, prop); } );
 
        .then( json => { if ( json.boolean ) quickpresets_addinterface(qid, prop); } );
 
    }
 
    }

Navigation menu