fix(core): update

This commit is contained in:
Philipp Kunz 2020-03-07 22:01:03 +00:00
parent 5e8a91f302
commit b999627ba5

View File

@ -42,7 +42,8 @@ const addOpenGraphProperty = async (
contentArg: string
): Promise<Element> => {
const openGraphElement = document.createElement('meta');
openGraphElement.name = propertyNameArg;
const anonGE: any = openGraphElement;
anonGE.property = propertyNameArg;
openGraphElement.content = contentArg;
document.getElementsByTagName('head')[0].appendChild(openGraphElement);
return openGraphElement;