Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.

Error when using mailgoDirectRender #120

@adityaekbote

Description

@adityaekbote

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions