@mjhls/mjh-framework 1.0.856 → 1.0.858

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 CHANGED
@@ -1,4 +1,4 @@
1
- # mjh-framework v. 1.0.856
1
+ # mjh-framework v. 1.0.858
2
2
 
3
3
  [![NPM](https://img.shields.io/npm/v/mjh-framework.svg)](https://www.npmjs.com/package/mjh-framework) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
4
4
 
@@ -76,7 +76,16 @@ var ADWelcome = function ADWelcome(_ref) {
76
76
  }
77
77
  }
78
78
  }, [timeLeft]);
79
-
79
+ React.useEffect(function () {
80
+ var adBlockDetected = function adBlockDetected() {
81
+ console.log('ADBLOCKER DETECTED');
82
+ document.body.style.overflow = 'auto';
83
+ setFlag(true);
84
+ };
85
+ fetch('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js').then('', function () {
86
+ adBlockDetected();
87
+ });
88
+ }, []);
80
89
  var checkIsAdFound = function checkIsAdFound(isFound, adData) {
81
90
  if (isFound) {
82
91
  var parent = document.getElementById('welcome-modal');
package/dist/cjs/View.js CHANGED
@@ -1157,7 +1157,13 @@ var Article = React.forwardRef(function (props, ref) {
1157
1157
  !isVideoSeries && showPublished && React__default['default'].createElement(
1158
1158
  'div',
1159
1159
  null,
1160
- moment.moment(published).format('LL')
1160
+ React__default['default'].createElement(
1161
+ 'time',
1162
+ {
1163
+ 'class': 'meta-date',
1164
+ datetime: moment.moment(published).utc().format(moment.moment.HTML5_FMT.DATETIME_LOCAL_MS) },
1165
+ moment.moment(published).format('LL')
1166
+ )
1161
1167
  )
1162
1168
  /* Show Published date */
1163
1169
  ,
@@ -70,7 +70,16 @@ var ADWelcome = function ADWelcome(_ref) {
70
70
  }
71
71
  }
72
72
  }, [timeLeft]);
73
-
73
+ useEffect(function () {
74
+ var adBlockDetected = function adBlockDetected() {
75
+ console.log('ADBLOCKER DETECTED');
76
+ document.body.style.overflow = 'auto';
77
+ setFlag(true);
78
+ };
79
+ fetch('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js').then('', function () {
80
+ adBlockDetected();
81
+ });
82
+ }, []);
74
83
  var checkIsAdFound = function checkIsAdFound(isFound, adData) {
75
84
  if (isFound) {
76
85
  var parent = document.getElementById('welcome-modal');
package/dist/esm/View.js CHANGED
@@ -1147,7 +1147,13 @@ var Article = forwardRef(function (props, ref) {
1147
1147
  !isVideoSeries && showPublished && React.createElement(
1148
1148
  'div',
1149
1149
  null,
1150
- moment(published).format('LL')
1150
+ React.createElement(
1151
+ 'time',
1152
+ {
1153
+ 'class': 'meta-date',
1154
+ datetime: moment(published).utc().format(moment.HTML5_FMT.DATETIME_LOCAL_MS) },
1155
+ moment(published).format('LL')
1156
+ )
1151
1157
  )
1152
1158
  /* Show Published date */
1153
1159
  ,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.856",
3
+ "version": "1.0.858",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",