I have initialized mailgo with all the config. But the mailgoDirectRender function is broken.
Uncaught TypeError: Cannot read properties of undefined (reading 'classList') at mailgoPreRender (mailgo.js?0de6:892) at mailgoDirectRender (mailgo.js?0de6:917)
The issue is with this line here:
if ((_config9 = config) !== null && _config9 !== void 0 && _config9.dark || mailgoElement.classList.contains("dark")) {
...
I guess since i am directly calling the mailgo render via the mailgoDirectRender method, the mailgoElement is not defined and there is no null check present.
I have initialized mailgo with all the config. But the mailgoDirectRender function is broken.
Uncaught TypeError: Cannot read properties of undefined (reading 'classList') at mailgoPreRender (mailgo.js?0de6:892) at mailgoDirectRender (mailgo.js?0de6:917)The issue is with this line here:
I guess since i am directly calling the mailgo render via the mailgoDirectRender method, the mailgoElement is not defined and there is no null check present.