We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c4b5ce commit 896441bCopy full SHA for 896441b
src/app/page.tsx
@@ -163,6 +163,14 @@ export default function Home() {
163
}
164
}, [theme]);
165
166
+ // Re-run Zoho SalesIQ trigger on SPA navigation
167
+ useEffect(() => {
168
+ if (typeof window !== 'undefined' && (window as any).$zoho && (window as any).$zoho.salesiq && (window as any).$zoho.salesiq.page) {
169
+ (window as any).$zoho.salesiq.page.popup.close('all');
170
+ (window as any).$zoho.salesiq.page.popup.show();
171
+ }
172
+ }, [activeView]);
173
+
174
const handleModalOpenChange = (view: View) => (isOpen: boolean) => {
175
if (!isOpen) {
176
setActiveView("home");
@@ -383,4 +391,4 @@ export default function Home() {
383
391
);
384
392
385
393
386
-
394
0 commit comments