@mjhls/mjh-framework 1.0.881-gtagfixv1 → 1.0.881-ios0fixv2
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/dist/cjs/View.js +3 -6
- package/dist/esm/View.js +3 -6
- package/package.json +1 -1
package/dist/cjs/View.js
CHANGED
|
@@ -1647,8 +1647,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1647
1647
|
});
|
|
1648
1648
|
// Change URL and do other changes
|
|
1649
1649
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
1650
|
-
|
|
1651
|
-
console.log('i am activeArticle from articleQueue2.js file', activeArticle);
|
|
1650
|
+
|
|
1652
1651
|
if (metaDescriptionSanity && metaTitleSanity && currentPath == newPath) {
|
|
1653
1652
|
changeMetaFromSanity(metaDescriptionSanity, metaTitleSanity, meta);
|
|
1654
1653
|
} else {
|
|
@@ -1657,7 +1656,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1657
1656
|
if (props.setCustomDimensions) {
|
|
1658
1657
|
props.setCustomDimensions(activeArticle, '200', prevUrl);
|
|
1659
1658
|
}
|
|
1660
|
-
|
|
1659
|
+
if (props.pageview) props.pageview(newPath, null, pageviewProperties);
|
|
1661
1660
|
refreshAD(path);
|
|
1662
1661
|
};
|
|
1663
1662
|
|
|
@@ -1728,9 +1727,7 @@ var View = function View(props) {
|
|
|
1728
1727
|
category: article && article.category ? article.category.name : ''
|
|
1729
1728
|
});
|
|
1730
1729
|
var waitAndExicute = function waitAndExicute() {
|
|
1731
|
-
if (typeof window.
|
|
1732
|
-
setCustomDimensions(article, statusCode, prevUrl);
|
|
1733
|
-
} else if (typeof window.GA_INITIALIZED !== 'undefined') {
|
|
1730
|
+
if (typeof window.GA_INITIALIZED !== 'undefined') {
|
|
1734
1731
|
setCustomDimensions(article, statusCode, prevUrl);
|
|
1735
1732
|
pageview(router.asPath, null, pageviewProperties);
|
|
1736
1733
|
} else timer = setTimeout(waitAndExicute, 1000);
|
package/dist/esm/View.js
CHANGED
|
@@ -1637,8 +1637,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1637
1637
|
});
|
|
1638
1638
|
// Change URL and do other changes
|
|
1639
1639
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
1640
|
-
|
|
1641
|
-
console.log('i am activeArticle from articleQueue2.js file', activeArticle);
|
|
1640
|
+
|
|
1642
1641
|
if (metaDescriptionSanity && metaTitleSanity && currentPath == newPath) {
|
|
1643
1642
|
changeMetaFromSanity(metaDescriptionSanity, metaTitleSanity, meta);
|
|
1644
1643
|
} else {
|
|
@@ -1647,7 +1646,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1647
1646
|
if (props.setCustomDimensions) {
|
|
1648
1647
|
props.setCustomDimensions(activeArticle, '200', prevUrl);
|
|
1649
1648
|
}
|
|
1650
|
-
|
|
1649
|
+
if (props.pageview) props.pageview(newPath, null, pageviewProperties);
|
|
1651
1650
|
refreshAD(path);
|
|
1652
1651
|
};
|
|
1653
1652
|
|
|
@@ -1718,9 +1717,7 @@ var View = function View(props) {
|
|
|
1718
1717
|
category: article && article.category ? article.category.name : ''
|
|
1719
1718
|
});
|
|
1720
1719
|
var waitAndExicute = function waitAndExicute() {
|
|
1721
|
-
if (typeof window.
|
|
1722
|
-
setCustomDimensions(article, statusCode, prevUrl);
|
|
1723
|
-
} else if (typeof window.GA_INITIALIZED !== 'undefined') {
|
|
1720
|
+
if (typeof window.GA_INITIALIZED !== 'undefined') {
|
|
1724
1721
|
setCustomDimensions(article, statusCode, prevUrl);
|
|
1725
1722
|
pageview(router.asPath, null, pageviewProperties);
|
|
1726
1723
|
} else timer = setTimeout(waitAndExicute, 1000);
|