Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
Line 149: Line 149:
 
             getQueryUrl('[[Category:Social media platform]]|?' + IMG_KEY)
 
             getQueryUrl('[[Category:Social media platform]]|?' + IMG_KEY)
 
         ).then(response => response.json());
 
         ).then(response => response.json());
        const results = sourceResponse.query.results;
 
  
         return Object.keys(results).map(platform => {
+
         return Object.keys(sourceResponse.query.results).map(platform => {
             const img = results[platform].printouts[IMG_KEY][0];
+
             const img = sourceResponse.query.results[platform].printouts[IMG_KEY][0];
            console.log(img)
 
 
             return {
 
             return {
 
                 name: platform,
 
                 name: platform,

Revision as of 09:41, 31 August 2022

Development verstion of the DCT List.
Not ready for production!