export async function getThemePropertiesAndSubscribeForChanges()

in js/app-homepage/iframe/theme.js [1:11]


export async function getThemePropertiesAndSubscribeForChanges() {
    // subscribe to the changes in theme css variables
    window.addEventListener("message", (e) => {
        if (e.data.properties !== undefined) {
            applyCssVars(e.data.properties);
        }
    });

    const themeCssVars = await getThemePropertiesFromSpace();
    applyCssVars(themeCssVars.properties);
}