diff options
| author | Max Nanis | 2025-06-23 17:20:31 +0700 |
|---|---|---|
| committer | Max Nanis | 2025-06-23 17:20:31 +0700 |
| commit | 8138549f64403874eb7c7ddfbde1cc2cc2c03695 (patch) | |
| tree | ff16ff5bf7b0a5454fd181d178a6f799b9141d64 /src/pages/Support.tsx | |
| parent | 5e8b1b89bfffd0202bc6c5f64aac943053d79d32 (diff) | |
| download | panel-ui-8138549f64403874eb7c7ddfbde1cc2cc2c03695.tar.gz panel-ui-8138549f64403874eb7c7ddfbde1cc2cc2c03695.zip | |
Typescript validation finally passes.
Diffstat (limited to 'src/pages/Support.tsx')
| -rw-r--r-- | src/pages/Support.tsx | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/pages/Support.tsx b/src/pages/Support.tsx deleted file mode 100644 index 4746b77..0000000 --- a/src/pages/Support.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import React, { useEffect } from 'react'; - -const ChatwootLoader = () => { - useEffect(() => { - const loadChatwoot = () => { - const BASE_URL = "https://chat.g-r-l.com"; - const script = document.createElement('script'); - script.src = `${BASE_URL}/packs/js/sdk.js`; - script.defer = true; - script.async = true; - - script.onload = () => { - if (window.chatwootSDK) { - window.chatwootSDK.run({ - websiteToken: 'dEEw3fcexQvnQ5tesJPKFjSb', - baseUrl: BASE_URL, - }); - } - }; - - document.body.appendChild(script); - }; - - loadChatwoot(); - - // Clean up script when the component unmounts - return () => { - const existingScript = document.querySelector(`script[src="https://app.chatwoot.com/packs/js/sdk.js"]`); - if (existingScript) { - document.body.removeChild(existingScript); - } - }; - }, []); - - return null; -}; - -export {ChatwootLoader};
\ No newline at end of file |
