We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4856cf2 + e015839 commit e31f40eCopy full SHA for e31f40e
src/theme/DocItem/Layout/useZendesk.js
@@ -17,15 +17,6 @@ const useZendesk = () => {
17
script.onload = () => setIsLoaded(true);
18
19
document.body.appendChild(script);
20
-
21
- return () => {
22
- // Check if the widget provides a specific cleanup function and call it here
23
- if (window.zE) {
24
- window.zE('messenger', 'hide'); // Example cleanup call, replace with actual if different
25
- }
26
- document.body.removeChild(script);
27
- setIsLoaded(false);
28
29
}, [siteConfig.customFields.ZENDESK_KEY, siteConfig.customFields.DEVELOPMENT]);
30
31
return isLoaded;
0 commit comments