show AutoFAQ operator's name

This commit is contained in:
merelendor 2024-01-17 13:36:45 +03:00
parent 44478dbfa9
commit ba5ca29579

View File

@ -56,19 +56,10 @@ const WrappedApp = (props) =>
window.widgetUserLogin = ${ props.acc !== null ? `"${ props.acc }"` : "undefined" };
window.widgetUserEmail = ${ props.email !== null ? `"${ props.email }"` : "undefined" };
window.widgetUserPayload = ${ props.acc !== null ? `{ "acc_number": "${ props.acc }" }` : "undefined" };
window.widgetOperatorName = true;
window.widgetStyleParams = { "headerBackgroundColor": "#1c01a9", "messageToWidgetBackgroundColor": "#3d21f8" };
console.log("widget", {
"widgetHost": window.widgetHost,
"widgetServiceId": window.widgetServiceId,
"widgetChannelId": window.widgetChannelId,
"widgetUserLogin": window.widgetUserLogin,
"widgetUserEmail": window.widgetUserEmail,
"widgetUserPayload": window.widgetUserPayload,
"widgetStyleParams": window.widgetStyleParams,
});
const script = document.createElement('script');
script.id = "autofaqWidget";
script.type = "text/javascript";