social icon fix export
This commit is contained in:
@@ -324,7 +324,12 @@ export const exportPersonalityToHTML = async (
|
||||
// Check if PNG icon is available, if so use it
|
||||
if (hasPngIcon(networkType, iconPack)) {
|
||||
const iconPath = getSocialIconPath(networkType, iconPack);
|
||||
return `<img src="${iconPath}" alt="${networkType} icon" style="width: 100%; height: 100%; object-fit: contain; display: block;" />`;
|
||||
const BASE = "https://dmail-admin.danakcorp.com";
|
||||
const absolute = iconPath.startsWith("/")
|
||||
? `${BASE}${iconPath}`
|
||||
: iconPath;
|
||||
const safeUrl = encodeURI(absolute);
|
||||
return `<img src="${safeUrl}" alt="${networkType} icon" style="width: 100%; height: 100%; object-fit: contain; display: block;" />`;
|
||||
}
|
||||
|
||||
// Use shared SVG function
|
||||
|
||||
Reference in New Issue
Block a user