Fix: Make version changeable from the environment vars (#4654)
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -163,7 +163,7 @@ export default {
|
||||
FB.init({
|
||||
appId: window.chatwootConfig.fbAppId,
|
||||
xfbml: true,
|
||||
version: 'v12.0',
|
||||
version: window.chatwootConfig.fbApiVersion,
|
||||
status: true,
|
||||
});
|
||||
window.fbSDKLoaded = true;
|
||||
|
||||
@@ -40,7 +40,7 @@ export default {
|
||||
FB.init({
|
||||
appId: window.chatwootConfig.fbAppId,
|
||||
xfbml: true,
|
||||
version: 'v12.0',
|
||||
version: window.chatwootConfig.fbApiVersion,
|
||||
status: true,
|
||||
});
|
||||
window.fbSDKLoaded = true;
|
||||
|
||||
Reference in New Issue
Block a user