Update hotjar version to 6.3.1

This commit is contained in:
Ariful Alam 2024-04-13 10:56:00 +06:00
parent 8b9475b797
commit 0fe7ebe978
3 changed files with 6 additions and 6 deletions

8
package-lock.json generated
View File

@ -31,7 +31,7 @@
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"react-helmet-async": "^2.0.4",
"react-hotjar": "^6.2.0",
"react-hotjar": "^6.3.1",
"react-icons": "^5.0.1",
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",
@ -7053,9 +7053,9 @@
}
},
"node_modules/react-hotjar": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/react-hotjar/-/react-hotjar-6.2.0.tgz",
"integrity": "sha512-uMX2IS5IKt1VkhHPwl2QEAEUmmm6VyxfzlwHLUKTQGZoE/0HWD71iGA7T31PO3KeN9+XUsTJS2P3zHva6TyhrQ==",
"version": "6.3.1",
"resolved": "https://registry.npmjs.org/react-hotjar/-/react-hotjar-6.3.1.tgz",
"integrity": "sha512-EwMqL+ROSlKzatMhT/aqRq7XWWfzlnHynSBSTJh5M2O78mBiPohiSl4Ysls3HOQkkD9y6L22BW0c9bxK2JguwQ==",
"dev": true
},
"node_modules/react-icons": {

View File

@ -44,7 +44,7 @@
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"react-helmet-async": "^2.0.4",
"react-hotjar": "^6.2.0",
"react-hotjar": "^6.3.1",
"react-icons": "^5.0.1",
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",

View File

@ -209,7 +209,7 @@ export const skeleton = ({
export const setupHotjar = (hotjarConfig: SanitizedHotjar): void => {
if (hotjarConfig?.id) {
const snippetVersion = hotjarConfig?.snippetVersion || 6;
hotjar.initialize(parseInt(hotjarConfig.id), snippetVersion);
hotjar.initialize({ id: parseInt(hotjarConfig.id), sv: snippetVersion });
}
};