diageo-age-gate-react 1.0.9 → 1.0.11

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/index.cjs CHANGED
@@ -73,6 +73,9 @@ function AgeGate({ customerId, userHash, containerId = 'ageGateWrapper', noAgeGa
73
73
  initInjectFooterJs();
74
74
  }
75
75
  });
76
+ react.useEffect(() => {
77
+ initInjectFooterJs();
78
+ }, [customerId, userHash, containerId, noAgeGate, noFooter, propCountryCode, propLanguage]);
76
79
  function initInjectFooterJs() {
77
80
  // URL 参数控制
78
81
  const noFooterFromQuery = getUrlQuery('pageStatus') === 'noFooter';
package/dist/index.mjs CHANGED
@@ -71,6 +71,9 @@ function AgeGate({ customerId, userHash, containerId = 'ageGateWrapper', noAgeGa
71
71
  initInjectFooterJs();
72
72
  }
73
73
  });
74
+ useEffect(() => {
75
+ initInjectFooterJs();
76
+ }, [customerId, userHash, containerId, noAgeGate, noFooter, propCountryCode, propLanguage]);
74
77
  function initInjectFooterJs() {
75
78
  // URL 参数控制
76
79
  const noFooterFromQuery = getUrlQuery('pageStatus') === 'noFooter';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diageo-age-gate-react",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "keywords": [
5
5
  "mlp diageo",
6
6
  "age gate footer"