Hi.
In the project I work we would often get Cannot read property 'init' of undefined. The reason was the following: intercom plugin (which sets window.Intercom) loaded faster than beforeCreate of this plugin got called. I'm including the fix that helped me in this PR. Most likely it produces a fair bit of bugs. But unfortunately I don't understand the current vue-intercom code. Can you explain these two if branches that I changed please? What is the reason for setting window.Intercom yourself?
Hi. In the project I work we would often get
Cannot read property 'init' of undefined
. The reason was the following: intercom plugin (which sets window.Intercom) loaded faster thanbeforeCreate
of this plugin got called. I'm including the fix that helped me in this PR. Most likely it produces a fair bit of bugs. But unfortunately I don't understand the current vue-intercom code. Can you explain these two if branches that I changed please? What is the reason for setting window.Intercom yourself?