INNER CODE UNIT · JavaScript

app

ChatFAQ/ChatFAQ · widget/components/index.js:8

    const app = createApp({ render: () => expose = h(Widget, props) })
        .use(_createPinia())
        .use(_createI18n());
    app.use(createHead());
    return app;
}

class ChatfaqWidget {
    constructor(attrs) {
        if (typeof attrs.element == "string")
            attrs.element = document.querySelector(attrs.element)
        this.element = attrs.element;

        const props = { ...this.element.dataset, ...attrs }

        this.app = _buildApp(props);
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…