Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

Is there a possibility to pass a configuration to the widget? #1

Description

@chemic

I would like to tweak some default settings of the widget, is there a possibility to pass config object to the widget anyhow?

Thanks!

Example from https://devdocs.drift.com/docs/widget-configuration

drift.config({
   locale: 'en-US',
    messages: {
     welcomeMessage: 'Hey there!',
      awayMessage: "Hey, we're not here right now, but leave a message.",
      emailCaptureMessage: "Leave your email so we can get back to you.",
      thankYouMessage: "Thanks we'll follow up soon."
    },
    enableWelcomeMessage: false,
    enableCampaigns: false,
    enableChatTargeting: false,
    backgroundColor: '#000000',
    foregroundColor: '#ffffff',
    activeColor: '#00ff00',
    textColor: '#ffffff',
    autoAssignee: {
      name: 'Trevor Rundell',
      title: 'Engineer',
      email: 'trevor@example.com',
      avatarUrl: 'https://s.gravatar.com/avatar/...',
    },
    inboxId: 1,
    cookieDomain: '.example.com',
    welcomeMessageDelay: 5000,
    disableNewConversations: true,
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions