@mjhls/mjh-framework 1.0.704-beta-v8 → 1.0.704-beta-v10

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.
@@ -62,20 +62,7 @@ var ADWelcome = function ADWelcome(_ref) {
62
62
  timeLeft = _useState2[0],
63
63
  setTimeLeft = _useState2[1];
64
64
 
65
- var _useState3 = React.useState(false),
66
- _useState4 = slicedToArray._slicedToArray(_useState3, 2),
67
- previewAd = _useState4[0],
68
- setPreviewAd = _useState4[1];
69
-
70
- React.useEffect(function () {
71
- var path = window && window.location && window.location.search;
72
- // Setting flag for Ad-preview URLs
73
- setPreviewAd(path.split('&').some(function (param) {
74
- return param.includes('creativeId');
75
- }));
76
- }, []);
77
-
78
- console.log('welcome previewAd :::::::::', previewAd, timeLeft);
65
+ console.log('welcome :::::::::', timeLeft);
79
66
 
80
67
  React.useEffect(function () {
81
68
  if (timeLeft > 0) {
@@ -171,7 +158,7 @@ var ADWelcome = function ADWelcome(_ref) {
171
158
  targeting: adTargeting,
172
159
  refreshFlag: false
173
160
  /* Passing function to check for ad creative only if it is not in preview. */
174
- , checkIsAdFound: previewAd ? null : checkIsAdFound
161
+ , checkIsAdFound: checkIsAdFound
175
162
  })
176
163
  ),
177
164
  React__default.createElement(
@@ -57,20 +57,7 @@ var ADWelcome = function ADWelcome(_ref) {
57
57
  timeLeft = _useState2[0],
58
58
  setTimeLeft = _useState2[1];
59
59
 
60
- var _useState3 = useState(false),
61
- _useState4 = _slicedToArray(_useState3, 2),
62
- previewAd = _useState4[0],
63
- setPreviewAd = _useState4[1];
64
-
65
- useEffect(function () {
66
- var path = window && window.location && window.location.search;
67
- // Setting flag for Ad-preview URLs
68
- setPreviewAd(path.split('&').some(function (param) {
69
- return param.includes('creativeId');
70
- }));
71
- }, []);
72
-
73
- console.log('welcome previewAd :::::::::', previewAd, timeLeft);
60
+ console.log('welcome :::::::::', timeLeft);
74
61
 
75
62
  useEffect(function () {
76
63
  if (timeLeft > 0) {
@@ -166,7 +153,7 @@ var ADWelcome = function ADWelcome(_ref) {
166
153
  targeting: adTargeting,
167
154
  refreshFlag: false
168
155
  /* Passing function to check for ad creative only if it is not in preview. */
169
- , checkIsAdFound: previewAd ? null : checkIsAdFound
156
+ , checkIsAdFound: checkIsAdFound
170
157
  })
171
158
  ),
172
159
  React__default.createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.704-beta-v8",
3
+ "version": "1.0.704-beta-v10",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",