[Enhancement] Use JS-Cookie to set Cookies (#193)

* Update js-cookie

* Add sdk css

* Remove conversation padding
This commit is contained in:
Pranav Raj S
2019-10-30 10:43:11 +05:30
committed by Sojan Jose
parent e32b6bf6d4
commit 3d3aefb197
14 changed files with 170 additions and 68 deletions

View File

@@ -4,15 +4,16 @@
<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 = '<%= @web_widget.website_name %>'
window.chatwootPubsubToken = '<%= @contact.pubsub_token %>'
window.authToken = '<%= @token %>'
</script>
<%= javascript_pack_tag 'widget' %>
<%= stylesheet_pack_tag 'widget' %>
</head>
<body>
<div id="app"></div>
<%= yield %>
<script>
window.chatwootWebChannel = '<%= @web_widget.website_name %>'
window.chatwootPubsubToken = '<%= @contact.pubsub_token %>'
</script>
</body>
</html>