2019-10-29 07:20:54 +00:00
|
|
|
<!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" />
|
2019-10-30 05:13:11 +00:00
|
|
|
<script>
|
2019-11-25 18:40:27 +00:00
|
|
|
window.chatwootWebChannel = {
|
2020-04-19 18:10:28 +00:00
|
|
|
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 %>',
|
2019-11-25 18:40:27 +00:00
|
|
|
}
|
2019-10-30 05:13:11 +00:00
|
|
|
window.chatwootPubsubToken = '<%= @contact.pubsub_token %>'
|
|
|
|
window.authToken = '<%= @token %>'
|
|
|
|
</script>
|
2019-10-29 07:20:54 +00:00
|
|
|
<%= javascript_pack_tag 'widget' %>
|
|
|
|
<%= stylesheet_pack_tag 'widget' %>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="app"></div>
|
|
|
|
<%= yield %>
|
|
|
|
</body>
|
|
|
|
</html>
|