941fbb0d72
* Chore: Webwidget Inbox Tech Debts * Additional customization options creating Web Widget * Changes to edit Page for Web Widget * Remove the WebWidget API end points * Minor chores Address: #680, #502 Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
25 lines
820 B
Text
25 lines
820 B
Text
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Chatwoot</title>
|
|
<%= csrf_meta_tags %>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
|
|
<script>
|
|
window.chatwootWebChannel = {
|
|
websiteName: '<%= @web_widget.inbox.name %>',
|
|
widgetColor: '<%= @web_widget.widget_color %>',
|
|
websiteToken: '<%= @web_widget.welcome_title %>',
|
|
welcomeTitle: '<%= @web_widget.welcome_title %>',
|
|
welcomeTagline: '<%= @web_widget.welcome_tagline %>',
|
|
}
|
|
window.chatwootPubsubToken = '<%= @contact.pubsub_token %>'
|
|
window.authToken = '<%= @token %>'
|
|
</script>
|
|
<%= javascript_pack_tag 'widget' %>
|
|
<%= stylesheet_pack_tag 'widget' %>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<%= yield %>
|
|
</body>
|
|
</html>
|