Function fetchBrandData

  • Fetches the brand JSON data, then retrieves and adds the logo and Bootstrap theme URLs to the object.

    Returns

    A promise that resolves to the brand object extended with logo and bootstrap CSS content, or undefined if fetching or parsing fails.

    Parameters

    • brandJsonUrl: string = 'brand.json'

      The URL of the brand JSON file. Defaults to 'brand.json'.

    • themeVersion: number = 1

      The version number of the Bootstrap theme to fetch. Defaults to 1.

    • cache: boolean = true

      If true, caches the fetched resources locally. Defaults to true.

    Returns Promise<{
        bootstrap: string;
        id: string;
        logo: string;
        name: string;
    } | undefined>

Generated using TypeDoc