@micromag/core 0.3.712 → 0.3.713
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/es/contexts.js +4 -3
- package/package.json +2 -2
package/es/contexts.js
CHANGED
|
@@ -388,9 +388,10 @@ var ConsentProvider = function ConsentProvider(_ref) {
|
|
|
388
388
|
}
|
|
389
389
|
return acc;
|
|
390
390
|
}, {});
|
|
391
|
-
if (typeof gtag === 'function') {
|
|
392
|
-
gtag('consent', initial === true ? 'default' : 'update', tagManagerConsent);
|
|
393
|
-
gtag('event', initial === true ? 'consent_default' : 'consent_update', tagManagerConsent);
|
|
391
|
+
if (typeof window !== 'undefined' && typeof window.gtag === 'function') {
|
|
392
|
+
window.gtag('consent', initial === true ? 'default' : 'update', tagManagerConsent);
|
|
393
|
+
window.gtag('event', initial === true ? 'consent_default' : 'consent_update', tagManagerConsent);
|
|
394
|
+
console.log('consent', initial === true ? 'default' : 'update', tagManagerConsent);
|
|
394
395
|
}
|
|
395
396
|
setConsentState(values);
|
|
396
397
|
}, [setConsentState, expiration]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.713",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -145,5 +145,5 @@
|
|
|
145
145
|
"access": "public",
|
|
146
146
|
"registry": "https://registry.npmjs.org/"
|
|
147
147
|
},
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "bc3301a6f6f8912a8559ff3307c7f9bc83cf8927"
|
|
149
149
|
}
|