Skip to main content

Custom Scripts

You can add custom scripts to a tenant by including them in the scripts section of the config file.

The configuration section contains an array of script objects with the following parameters:

ParameterDescription
srcThe URL of the script to load
asyncWhether or not the script should load asyncronously. Defaults to true.

Example

Add the tenant switcher by including the tenant switcher script URL in the scripts section as shown below:

// extract of the config json file
{
// other config sections
"scripts" : [
{
"src": "https://cdn.toolkit.lightstone.co.za/tenant-management/v1/scripts/tenant-switcher.js"
}
]
}