window.widgetUserEmail = ${ props.email !== null ? `"${ props.email }"` : "undefined" };
window.widgetUserPayload = ${ props.acc !== null ? `{ "acc_number": "${ props.acc }" }` : "undefined" };
+ 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,
+ "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');