fix(core): update
This commit is contained in:
@@ -11,6 +11,16 @@ export class OpengraphTag extends Tag {
|
||||
return tagArray;
|
||||
}
|
||||
|
||||
public static createProductOgTags(productArg: plugins.tsclass.saas.IProduct) {
|
||||
const tagArray: OpengraphTag[] = [];
|
||||
tagArray.push(new OpengraphTag('og:url', globalThis.location.href));
|
||||
tagArray.push(new OpengraphTag('og:title', productArg.name));
|
||||
tagArray.push(new OpengraphTag('og:site_name', productArg.name))
|
||||
tagArray.push(new OpengraphTag('og:description', productArg.description));
|
||||
tagArray.push(new OpengraphTag('og:image', productArg.logoLink));
|
||||
return tagArray;
|
||||
}
|
||||
|
||||
constructor(propertyNameArg: string, contentArg: string) {
|
||||
super();
|
||||
const openGraphElement = document.createElement('meta');
|
||||
|
||||
Reference in New Issue
Block a user