fix(core): update

This commit is contained in:
Philipp Kunz 2020-03-08 10:54:12 +00:00
parent 6ace59d1d1
commit a3793572e7

View File

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