Browse Source

Updated Drift Config

Yoginth 7 years ago
parent
commit
2da5866908
1 changed files with 5 additions and 1 deletions
  1. 5 1
      templates/base/verification.tmpl

+ 5 - 1
templates/base/verification.tmpl

@@ -38,12 +38,16 @@
     nickname: '{{.LoggedUser.FullName}}',
     email: '{{.LoggedUser.Email}}'
   });
+  {{end}}
   drift.config({
+    {{if .LoggedUser}}
     messages: {
       welcomeMessage: 'Hey {{.LoggedUser.FullName}}!\nHelp, feedback, or bugs? Talk to us 🌞',
     },
     backgroundColor: {{.Owner.ThemeColor}},
+    {{end}}
+    enableWelcomeMessage: false,
+    disableNewConversations: false,
   })
-  {{end}}
   drift.reset();
 </script>