@mjhls/mjh-framework 1.0.857 → 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 +1 -1
- package/dist/cjs/ADWelcome.js +10 -1
- package/dist/esm/ADWelcome.js +10 -1
- 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.858
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
package/dist/cjs/ADWelcome.js
CHANGED
|
@@ -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/esm/ADWelcome.js
CHANGED
|
@@ -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');
|