Compare commits

...

6 Commits

Author SHA1 Message Date
bdf55a19d9 2.0.13 2020-03-13 11:46:21 +00:00
cd1f68f55e fix(core): update 2020-03-13 11:46:20 +00:00
f2bd7145b3 2.0.12 2020-03-08 15:14:25 +00:00
6d9789df45 fix(core): update 2020-03-08 15:14:24 +00:00
0be8a6f60d 2.0.11 2020-03-08 10:54:12 +00:00
a3793572e7 fix(core): update 2020-03-08 10:54:12 +00:00
4 changed files with 1763 additions and 9 deletions

4
.gitignore vendored
View File

@ -15,8 +15,6 @@ node_modules/
# builds
dist/
dist_web/
dist_serve/
dist_ts_web/
dist_*/
# custom

1757
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/websetup",
"version": "2.0.10",
"version": "2.0.13",
"private": false,
"description": "setup basic page properties",
"main": "dist/index.js",
@ -9,8 +9,9 @@
"license": "MIT",
"scripts": {
"test": "(tstest test/)",
"build": "(tsbuild --web)",
"format": "(gitzone format)"
"build": "(tsbuild --web && npm run bundle)",
"format": "(gitzone format)",
"bundle": "tsbundle --production --from ./ts/index.ts --to ./dist_bundle/bundle.js"
},
"keywords": [
"lossless",
@ -18,6 +19,7 @@
],
"devDependencies": {
"@gitzone/tsbuild": "^2.1.17",
"@gitzone/tsbundle": "^1.0.50",
"@gitzone/tstest": "^1.0.28",
"@pushrocks/tapbundle": "^3.2.0",
"tslint": "^6.0.0",

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;