Fix: Make version changeable from the environment vars (#4654)

This commit is contained in:
Tejaswini Chile
2022-05-10 19:20:55 +05:30
committed by GitHub
parent 81d0405473
commit 9ed1f5d96b
5 changed files with 9 additions and 5 deletions

View File

@@ -34,6 +34,7 @@
window.chatwootConfig = {
hostURL: '<%= ENV.fetch('FRONTEND_URL', '') %>',
fbAppId: '<%= ENV.fetch('FB_APP_ID', nil) %>',
fbApiVersion: '<%= @global_config['FACEBOOK_API_VERSION'] %>',
signupEnabled: '<%= @global_config['ENABLE_ACCOUNT_SIGNUP'] %>',
<% if @global_config['VAPID_PUBLIC_KEY'] %>
vapidPublicKey: new Uint8Array(<%= Base64.urlsafe_decode64(@global_config['VAPID_PUBLIC_KEY']).bytes %>),