diff --git a/ts/meta/index.ts b/ts/meta/index.ts index 7c7d9cd..ade085b 100644 --- a/ts/meta/index.ts +++ b/ts/meta/index.ts @@ -42,7 +42,8 @@ const addOpenGraphProperty = async ( contentArg: string ): Promise => { 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;