Configuration

get()

The Configuration API exposes data related to the event, the plugin, the environment, etc. It can be very useful when you want to adapt behaviors according to those information.

usage:

import { Configuration } from '@livestorm/plugin'

const locale = Configuration.get('locale')

// Do something based on the locale

Exposed keys

Environment

KeyTypeDescription
localestringThe current locale of the app. e.g.: fr, en, es, it
organizationIdstringThe ID of the organization
originstringThe origin of the current URL
queryStringobjectThe query params of the current URL

Event

KeyTypeDescription
eventTypeIdstringThe ID of the type of the event
isPublishedbooleanWhether the event is published or not
sessionIdstringThe ID of the session

Plugin

KeyTypeDescription
pluginHoststringThe host of the plugin server
pluginIdstringThe ID of the plugin
pluginNamestringThe name of the plugin