working on typescript and ssr problems...
This commit is contained in:
parent
dd8c7cde9b
commit
1606a2b30a
2
dist/mailgo.min.js
vendored
2
dist/mailgo.min.js
vendored
File diff suppressed because one or more lines are too long
@ -825,9 +825,13 @@ const mailgo = (config?: MailgoConfig) => {
|
||||
|
||||
// start mailgo
|
||||
(() => {
|
||||
// if the window is defined...
|
||||
if (window && typeof window !== "undefined") {
|
||||
// if the window object exists...
|
||||
// mailgo style (gulp)
|
||||
let mailgoCSS: HTMLStyleElement = <HTMLStyleElement>createElement("style");
|
||||
let mailgoCSS: HTMLStyleElement = <HTMLStyleElement>(
|
||||
createElement("style")
|
||||
);
|
||||
mailgoCSS.id = "mailgo-style";
|
||||
mailgoCSS.type = "text/css";
|
||||
mailgoCSS.appendChild(createTextNode(`MAILGO_STYLE`));
|
||||
@ -838,6 +842,7 @@ const mailgo = (config?: MailgoConfig) => {
|
||||
|
||||
// event listener on body, if the element is mailgo-compatible the mailgo modal will be rendered
|
||||
document.addEventListener("click", mailgoCheckRender);
|
||||
}
|
||||
})();
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user