@@ -252,8 +252,8 @@ const buildDisplayTechnologies = (data: any, settings: any) => {
252252 return filterTechnologiesBySettings ( suppressGenericCdnFallbacks ( mergeDisplayTechnologyRecords ( all ) ) , settings )
253253}
254254
255- const buildPopupResult = ( data : any , settings : any , tab : any ) => {
256- const technologies = buildDisplayTechnologies ( data , settings )
255+ const buildPopupResult = async ( data : any , settings : any , tab : any ) => {
256+ const technologies = await attachTechnologyLinks ( buildDisplayTechnologies ( data , settings ) , settings )
257257 const resources = mergeResourceSummary ( data . page ?. resources || { } , data . dynamic || { } )
258258 const main = data . main || { }
259259 const headerCount =
@@ -295,11 +295,11 @@ export const buildPopupRawResult = async (data: any, settings: any, tab: any) =>
295295 }
296296}
297297
298- export const buildPopupCacheRecord = ( data : any , settings : any , tab : any ) => {
298+ export const buildPopupCacheRecord = async ( data : any , settings : any , tab : any ) => {
299299 const hydrated = addStoredCustomHeaderRules ( data || { } , settings )
300300 const sourceUpdatedAt = getStoredUpdatedAt ( hydrated )
301301 return {
302- ...buildPopupResult ( hydrated , settings , tab ) ,
302+ ...( await buildPopupResult ( hydrated , settings , tab ) ) ,
303303 cacheVersion : POPUP_CACHE_SCHEMA_VERSION ,
304304 settingsKey : buildSettingsCacheKey ( settings ) ,
305305 hasCache : hasStoredDetection ( hydrated ) ,
@@ -338,7 +338,7 @@ export const getPopupResultResponse = async (tabId: number) => {
338338 }
339339
340340 const data = await getTabData ( tabId )
341- const popup = buildPopupCacheRecord ( data , settings , tab )
341+ const popup = await buildPopupCacheRecord ( data , settings , tab )
342342 if ( hasStoredDetection ( data ) ) {
343343 const { popup : legacyPopup , ...tabData } = data || { }
344344 const nextStorage : Record < string , unknown > = { [ popupStorageKey ( tabId ) ] : popup }
0 commit comments