@mjhls/mjh-framework 1.0.1010 → 1.0.1011
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/View.js +18 -18
- package/dist/esm/View.js +18 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
1
|
+
# mjh-framework v. 1.0.1011
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
package/dist/cjs/View.js
CHANGED
|
@@ -2243,17 +2243,17 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2243
2243
|
document.title = metaTitle;
|
|
2244
2244
|
//this was throwing an error if there was no description, doing a check for the description meta
|
|
2245
2245
|
if (document.querySelector('meta[name="description"]')) document.querySelector('meta[name="description"]').setAttribute('content', metaDescription);
|
|
2246
|
-
document.querySelector('meta[name="keywords"]').setAttribute('content', oldMeta.shareKeywords);
|
|
2247
|
-
document.querySelector('meta[property="og:url"]').setAttribute('content', oldMeta.shareUrl);
|
|
2248
|
-
document.querySelector('meta[property="og:title"]').setAttribute('content', metaTitle);
|
|
2249
|
-
document.querySelector('meta[property="og:site_name"]').setAttribute('content', oldMeta.shareVia);
|
|
2250
|
-
document.querySelector('meta[property="og:description"]').setAttribute('content', metaDescription);
|
|
2251
|
-
document.querySelector('meta[name="twitter:title"]').setAttribute('content', metaTitle);
|
|
2252
|
-
document.querySelector('meta[name="twitter:image"]').setAttribute('content', oldMeta.shareImage);
|
|
2253
|
-
document.querySelector('meta[name="twitter:site"]').setAttribute('content', oldMeta.shareVia);
|
|
2246
|
+
if (document.querySelector('meta[name="keywords"]')) document.querySelector('meta[name="keywords"]').setAttribute('content', oldMeta.shareKeywords);
|
|
2247
|
+
if (document.querySelector('meta[property="og:url"]')) document.querySelector('meta[property="og:url"]').setAttribute('content', oldMeta.shareUrl);
|
|
2248
|
+
if (document.querySelector('meta[property="og:title"]')) document.querySelector('meta[property="og:title"]').setAttribute('content', metaTitle);
|
|
2249
|
+
if (document.querySelector('meta[property="og:site_name"]')) document.querySelector('meta[property="og:site_name"]').setAttribute('content', oldMeta.shareVia);
|
|
2250
|
+
if (document.querySelector('meta[property="og:description"]')) document.querySelector('meta[property="og:description"]').setAttribute('content', metaDescription);
|
|
2251
|
+
if (document.querySelector('meta[name="twitter:title"]')) document.querySelector('meta[name="twitter:title"]').setAttribute('content', metaTitle);
|
|
2252
|
+
if (document.querySelector('meta[name="twitter:image"]')) document.querySelector('meta[name="twitter:image"]').setAttribute('content', oldMeta.shareImage);
|
|
2253
|
+
if (document.querySelector('meta[name="twitter:site"]')) document.querySelector('meta[name="twitter:site"]').setAttribute('content', oldMeta.shareVia);
|
|
2254
2254
|
//this was throwing an error if there was no description, doing a check for the description meta
|
|
2255
2255
|
if (document.querySelector('meta[name="twitter:description"]')) document.querySelector('meta[name="twitter:description"]').setAttribute('content', metaDescription);
|
|
2256
|
-
if (canonicalTag) {
|
|
2256
|
+
if (canonicalTag && document.querySelector('link[rel="canonical"]')) {
|
|
2257
2257
|
document.querySelector('link[rel="canonical"]').setAttribute('href', oldMeta.shareUrl);
|
|
2258
2258
|
}
|
|
2259
2259
|
};
|
|
@@ -2262,17 +2262,17 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2262
2262
|
document.title = meta.shareTitle;
|
|
2263
2263
|
//this was throwing an error if there was no description, doing a check for the description meta
|
|
2264
2264
|
if (document.querySelector('meta[name="description"]')) document.querySelector('meta[name="description"]').setAttribute('content', meta.shareSummary);
|
|
2265
|
-
document.querySelector('meta[name="keywords"]').setAttribute('content', meta.shareKeywords);
|
|
2266
|
-
document.querySelector('meta[property="og:url"]').setAttribute('content', meta.shareUrl);
|
|
2267
|
-
document.querySelector('meta[property="og:title"]').setAttribute('content', meta.shareTitle);
|
|
2268
|
-
document.querySelector('meta[property="og:site_name"]').setAttribute('content', meta.shareVia);
|
|
2269
|
-
document.querySelector('meta[property="og:description"]').setAttribute('content', meta.shareSummary);
|
|
2270
|
-
document.querySelector('meta[name="twitter:title"]').setAttribute('content', meta.shareTitle);
|
|
2271
|
-
document.querySelector('meta[name="twitter:image"]').setAttribute('content', meta.shareImage);
|
|
2272
|
-
document.querySelector('meta[name="twitter:site"]').setAttribute('content', meta.shareVia);
|
|
2265
|
+
if (document.querySelector('meta[name="keywords"]')) document.querySelector('meta[name="keywords"]').setAttribute('content', meta.shareKeywords);
|
|
2266
|
+
if (document.querySelector('meta[property="og:url"]')) document.querySelector('meta[property="og:url"]').setAttribute('content', meta.shareUrl);
|
|
2267
|
+
if (document.querySelector('meta[property="og:title"]')) document.querySelector('meta[property="og:title"]').setAttribute('content', meta.shareTitle);
|
|
2268
|
+
if (document.querySelector('meta[property="og:site_name"]')) document.querySelector('meta[property="og:site_name"]').setAttribute('content', meta.shareVia);
|
|
2269
|
+
if (document.querySelector('meta[property="og:description"]')) document.querySelector('meta[property="og:description"]').setAttribute('content', meta.shareSummary);
|
|
2270
|
+
if (document.querySelector('meta[name="twitter:title"]')) document.querySelector('meta[name="twitter:title"]').setAttribute('content', meta.shareTitle);
|
|
2271
|
+
if (document.querySelector('meta[name="twitter:image"]')) document.querySelector('meta[name="twitter:image"]').setAttribute('content', meta.shareImage);
|
|
2272
|
+
if (document.querySelector('meta[name="twitter:site"]')) document.querySelector('meta[name="twitter:site"]').setAttribute('content', meta.shareVia);
|
|
2273
2273
|
//this was throwing an error if there was no description, doing a check for the description meta
|
|
2274
2274
|
if (document.querySelector('meta[name="twitter:description"]')) document.querySelector('meta[name="twitter:description"]').setAttribute('content', meta.shareSummary);
|
|
2275
|
-
if (canonicalTag) {
|
|
2275
|
+
if (canonicalTag && document.querySelector('link[rel="canonical"]')) {
|
|
2276
2276
|
document.querySelector('link[rel="canonical"]').setAttribute('href', meta.shareUrl);
|
|
2277
2277
|
}
|
|
2278
2278
|
};
|
package/dist/esm/View.js
CHANGED
|
@@ -2233,17 +2233,17 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2233
2233
|
document.title = metaTitle;
|
|
2234
2234
|
//this was throwing an error if there was no description, doing a check for the description meta
|
|
2235
2235
|
if (document.querySelector('meta[name="description"]')) document.querySelector('meta[name="description"]').setAttribute('content', metaDescription);
|
|
2236
|
-
document.querySelector('meta[name="keywords"]').setAttribute('content', oldMeta.shareKeywords);
|
|
2237
|
-
document.querySelector('meta[property="og:url"]').setAttribute('content', oldMeta.shareUrl);
|
|
2238
|
-
document.querySelector('meta[property="og:title"]').setAttribute('content', metaTitle);
|
|
2239
|
-
document.querySelector('meta[property="og:site_name"]').setAttribute('content', oldMeta.shareVia);
|
|
2240
|
-
document.querySelector('meta[property="og:description"]').setAttribute('content', metaDescription);
|
|
2241
|
-
document.querySelector('meta[name="twitter:title"]').setAttribute('content', metaTitle);
|
|
2242
|
-
document.querySelector('meta[name="twitter:image"]').setAttribute('content', oldMeta.shareImage);
|
|
2243
|
-
document.querySelector('meta[name="twitter:site"]').setAttribute('content', oldMeta.shareVia);
|
|
2236
|
+
if (document.querySelector('meta[name="keywords"]')) document.querySelector('meta[name="keywords"]').setAttribute('content', oldMeta.shareKeywords);
|
|
2237
|
+
if (document.querySelector('meta[property="og:url"]')) document.querySelector('meta[property="og:url"]').setAttribute('content', oldMeta.shareUrl);
|
|
2238
|
+
if (document.querySelector('meta[property="og:title"]')) document.querySelector('meta[property="og:title"]').setAttribute('content', metaTitle);
|
|
2239
|
+
if (document.querySelector('meta[property="og:site_name"]')) document.querySelector('meta[property="og:site_name"]').setAttribute('content', oldMeta.shareVia);
|
|
2240
|
+
if (document.querySelector('meta[property="og:description"]')) document.querySelector('meta[property="og:description"]').setAttribute('content', metaDescription);
|
|
2241
|
+
if (document.querySelector('meta[name="twitter:title"]')) document.querySelector('meta[name="twitter:title"]').setAttribute('content', metaTitle);
|
|
2242
|
+
if (document.querySelector('meta[name="twitter:image"]')) document.querySelector('meta[name="twitter:image"]').setAttribute('content', oldMeta.shareImage);
|
|
2243
|
+
if (document.querySelector('meta[name="twitter:site"]')) document.querySelector('meta[name="twitter:site"]').setAttribute('content', oldMeta.shareVia);
|
|
2244
2244
|
//this was throwing an error if there was no description, doing a check for the description meta
|
|
2245
2245
|
if (document.querySelector('meta[name="twitter:description"]')) document.querySelector('meta[name="twitter:description"]').setAttribute('content', metaDescription);
|
|
2246
|
-
if (canonicalTag) {
|
|
2246
|
+
if (canonicalTag && document.querySelector('link[rel="canonical"]')) {
|
|
2247
2247
|
document.querySelector('link[rel="canonical"]').setAttribute('href', oldMeta.shareUrl);
|
|
2248
2248
|
}
|
|
2249
2249
|
};
|
|
@@ -2252,17 +2252,17 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2252
2252
|
document.title = meta.shareTitle;
|
|
2253
2253
|
//this was throwing an error if there was no description, doing a check for the description meta
|
|
2254
2254
|
if (document.querySelector('meta[name="description"]')) document.querySelector('meta[name="description"]').setAttribute('content', meta.shareSummary);
|
|
2255
|
-
document.querySelector('meta[name="keywords"]').setAttribute('content', meta.shareKeywords);
|
|
2256
|
-
document.querySelector('meta[property="og:url"]').setAttribute('content', meta.shareUrl);
|
|
2257
|
-
document.querySelector('meta[property="og:title"]').setAttribute('content', meta.shareTitle);
|
|
2258
|
-
document.querySelector('meta[property="og:site_name"]').setAttribute('content', meta.shareVia);
|
|
2259
|
-
document.querySelector('meta[property="og:description"]').setAttribute('content', meta.shareSummary);
|
|
2260
|
-
document.querySelector('meta[name="twitter:title"]').setAttribute('content', meta.shareTitle);
|
|
2261
|
-
document.querySelector('meta[name="twitter:image"]').setAttribute('content', meta.shareImage);
|
|
2262
|
-
document.querySelector('meta[name="twitter:site"]').setAttribute('content', meta.shareVia);
|
|
2255
|
+
if (document.querySelector('meta[name="keywords"]')) document.querySelector('meta[name="keywords"]').setAttribute('content', meta.shareKeywords);
|
|
2256
|
+
if (document.querySelector('meta[property="og:url"]')) document.querySelector('meta[property="og:url"]').setAttribute('content', meta.shareUrl);
|
|
2257
|
+
if (document.querySelector('meta[property="og:title"]')) document.querySelector('meta[property="og:title"]').setAttribute('content', meta.shareTitle);
|
|
2258
|
+
if (document.querySelector('meta[property="og:site_name"]')) document.querySelector('meta[property="og:site_name"]').setAttribute('content', meta.shareVia);
|
|
2259
|
+
if (document.querySelector('meta[property="og:description"]')) document.querySelector('meta[property="og:description"]').setAttribute('content', meta.shareSummary);
|
|
2260
|
+
if (document.querySelector('meta[name="twitter:title"]')) document.querySelector('meta[name="twitter:title"]').setAttribute('content', meta.shareTitle);
|
|
2261
|
+
if (document.querySelector('meta[name="twitter:image"]')) document.querySelector('meta[name="twitter:image"]').setAttribute('content', meta.shareImage);
|
|
2262
|
+
if (document.querySelector('meta[name="twitter:site"]')) document.querySelector('meta[name="twitter:site"]').setAttribute('content', meta.shareVia);
|
|
2263
2263
|
//this was throwing an error if there was no description, doing a check for the description meta
|
|
2264
2264
|
if (document.querySelector('meta[name="twitter:description"]')) document.querySelector('meta[name="twitter:description"]').setAttribute('content', meta.shareSummary);
|
|
2265
|
-
if (canonicalTag) {
|
|
2265
|
+
if (canonicalTag && document.querySelector('link[rel="canonical"]')) {
|
|
2266
2266
|
document.querySelector('link[rel="canonical"]').setAttribute('href', meta.shareUrl);
|
|
2267
2267
|
}
|
|
2268
2268
|
};
|