Fix: Make version changeable from the environment vars (#4654)

This commit is contained in:
Tejaswini Chile
2022-05-10 19:20:55 +05:30
committed by GitHub
parent 81d0405473
commit 9ed1f5d96b
5 changed files with 9 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ export const createMessengerScript = pageId => `
FB.init({
appId: "${window.chatwootConfig.fbAppId}",
xfbml: true,
version: "v4.0"
version: "${window.chatwootConfig.fbApiVersion}"
});
};
(function(d, s, id){