
    (function(){
        let settings = {"theme":"rounded"};
        
        var head = document.head;
        var link1 = document.createElement("link");
        link1.type = "text/css";
        link1.rel = "stylesheet";
        link1.id = "idxapps-widget-themes-css";
        link1.href = `https://idxapps.com/css/widget_themes/${settings['theme']}.css`;

        const shadowRoot = document.querySelector('.ihf-container').shadowRoot;
        console.log(shadowRoot);
        const idxWidgetThemesCss = shadowRoot.querySelector('#idxapps-widget-themes-css');
        console.log(idxWidgetThemesCss);
        if (!idxWidgetThemesCss) {
            shadowRoot.querySelector('.shadow-root').prepend(link1);
        }

    })();

