make whatsapp embedded signup api version dynamic

This commit is contained in:
Tanmay Deep Sharma
2025-06-11 13:00:19 +05:30
parent 1c09cc5aa5
commit 34a2eff135
7 changed files with 55 additions and 61 deletions
@@ -293,7 +293,7 @@ export function useWhatsappEmbeddedSignup() {
appId: window.chatwootConfig?.whatsappAppId,
status: true,
xfbml: true,
version: window.chatwootConfig?.fbApiVersion || 'v21.0',
version: window.chatwootConfig?.whatsappApiVersion || 'v22.0',
});
fbSdkLoaded.value = true;
};