bug with ts
This commit is contained in:
parent
8a7e43a6b2
commit
7c513ffb26
File diff suppressed because one or more lines are too long
|
@ -2,6 +2,8 @@
|
|||
// Project: mailgo
|
||||
// Definitions by: Matteo Manzinello <https://matteomanzinello.com>
|
||||
|
||||
declare module "mailgo";
|
||||
|
||||
export type MailgoConfig = {
|
||||
initEvent?: string;
|
||||
defaultLang?: string;
|
||||
|
|
|
@ -780,7 +780,7 @@ const mailgoStyle = () => {
|
|||
document.head.appendChild(mailgoCSSElement);
|
||||
};
|
||||
// mailgo
|
||||
const mailgo = (mailgoConfig) => {
|
||||
function mailgo(mailgoConfig) {
|
||||
// if the window is defined...
|
||||
if (window && typeof window !== "undefined") {
|
||||
// add the style for mailgo
|
||||
|
@ -795,7 +795,7 @@ const mailgo = (mailgoConfig) => {
|
|||
mailgoInit(mailgoConfig);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
/* harmony default export */ __webpack_exports__["default"] = (mailgo);
|
||||
|
||||
|
||||
|
|
|
@ -893,7 +893,7 @@ const mailgoStyle = (): void => {
|
|||
};
|
||||
|
||||
// mailgo
|
||||
const mailgo = (mailgoConfig?: MailgoConfig): void => {
|
||||
function mailgo(mailgoConfig?: MailgoConfig) {
|
||||
// if the window is defined...
|
||||
if (window && typeof window !== "undefined") {
|
||||
// add the style for mailgo
|
||||
|
@ -908,6 +908,6 @@ const mailgo = (mailgoConfig?: MailgoConfig): void => {
|
|||
mailgoInit(mailgoConfig);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default mailgo;
|
||||
|
|
Loading…
Reference in New Issue