feat: better init

This commit is contained in:
Shivam Mishra
2025-05-16 16:23:56 +05:30
parent a118bef98e
commit b591893486
+7 -7
View File
@@ -27,13 +27,13 @@ const i18n = createI18n({
},
});
commonHelpers();
// eslint-disable-next-line no-underscore-dangle
window.__CHATWOOT_STORE__ = store;
window.WootConstants = constants;
window.axios = createAxios(axios);
export const init = async () => {
commonHelpers();
// eslint-disable-next-line no-underscore-dangle
window.__CHATWOOT_STORE__ = store;
window.WootConstants = constants;
window.axios = createAxios(axios);
return store.dispatch('setUser').then(() => {
const app = createApp(MessageList);
@@ -47,4 +47,4 @@ export const init = async () => {
});
};
window.initConversation = init;
window.initChatUI = init;