@@ -26,7 +26,7 @@ export class HeaderFooterUtils {
2626 deck . removeChild ( currentSlotElement ) ;
2727 }
2828
29- const promises : Promise < HTMLElement > [ ] = [ this . createContainer ( slotName ) , this . createSocial ( user , type ) , this . createImg ( type ) ] ;
29+ const promises : Promise < HTMLElement > [ ] = [ this . createContainer ( slotName ) , this . createSocial ( user , type ) , this . createImg ( user , type ) ] ;
3030 const [ div , social , deckgoImg ] = await Promise . all ( promises ) ;
3131
3232 social . appendChild ( deckgoImg ) ;
@@ -60,7 +60,7 @@ export class HeaderFooterUtils {
6060 return socialElement ;
6161 }
6262
63- private static async createImg ( type : 'twitter' | 'linkedin' | 'dev' | 'medium' | 'github' | 'custom' ) : Promise < HTMLElement > {
63+ private static async createImg ( user : User , type : 'twitter' | 'linkedin' | 'dev' | 'medium' | 'github' | 'custom' ) : Promise < HTMLElement > {
6464 const deckgoImg : HTMLElement = document . createElement ( SlotType . IMG ) ;
6565 deckgoImg . setAttribute ( 'slot' , 'icon' ) ;
6666 deckgoImg . setAttribute ( 'aria-label' , type ) ;
@@ -71,6 +71,8 @@ export class HeaderFooterUtils {
7171 deckgoImg . setAttribute ( 'svg-src' , `${ config . globalAssetsUrl } /icons/ionicons/${ type } .svg` ) ;
7272 } else if ( type === 'medium' || type === 'dev' ) {
7373 deckgoImg . setAttribute ( 'svg-src' , `${ config . globalAssetsUrl } /icons/${ type } .svg` ) ;
74+ } else if ( user . data . social . custom_logo_url !== undefined && user . data . social . custom_logo_url !== '' ) {
75+ deckgoImg . setAttribute ( 'img-src' , user . data . social . custom_logo_url ) ;
7476 } else {
7577 deckgoImg . setAttribute ( 'svg-src' , `${ config . globalAssetsUrl } /icons/ionicons/globe.svg` ) ;
7678 }
0 commit comments