You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it doesn't work because the module isn't being loaded if the nuxt.config.js doesn't contain a valid app_id, so there's no way to initialize the plugin manually.
I believe the appId parameter can take a function, so rather than just a variable, you should be able to pass in a function that will resolve to the appId that you need.
I believe the appId parameter can take a function, so rather than just a variable, you should be able to pass in a function that will resolve to the appId that you need.
// Async id evaluationif(typeof(options.appId)==='function'){options.appId=awaitoptions.appId()}
Oh, I forgot to mention it, but I have tried to use that option 🙁
The problem is that I have no way of identifying the country from the callback of the nuxt.config.js. So, to identify the country, I'm using the current route + nuxtServerInit method + a store to hold the information.
Hi there 🙌,
First of all, thanks for the module! Awesome work.
About the issue
I've got a special case where I need to initialize the Intercom through an API using differents App ID's, so for example:
XXX-1
XXX-2
XXX-3
So I've tried to boot manually from a custom plugin in nuxt like this:
But it doesn't work because the module isn't being loaded if the
nuxt.config.js
doesn't contain a validapp_id,
so there's no way to initialize the plugin manually.Would you mind checking the following code?
nuxt-intercom/lib/module.js
Line 16 in d17894d
Could I help to send a PR or let me know if I'm doing something wrong?
Thanks!
The text was updated successfully, but these errors were encountered: