diff --git a/dist/mailgo.js b/dist/mailgo.js index 8110e52..fd9b073 100644 --- a/dist/mailgo.js +++ b/dist/mailgo.js @@ -399,7 +399,7 @@ var encodeEmail = function encodeEmail(email) { var getE = function getE(id) { return document.getElementById(id); -}; // custom composedPath +}; // custom composedPath if path or event.composedPath() are not defined var composedPath = function composedPath(el) { diff --git a/src/mailgo.js b/src/mailgo.js index 0fb42c9..7a92dd2 100644 --- a/src/mailgo.js +++ b/src/mailgo.js @@ -481,7 +481,7 @@ const encodeEmail = email => btoa(email); // getE shorthand const getE = id => document.getElementById(id); -// custom composedPath +// custom composedPath if path or event.composedPath() are not defined const composedPath = el => { let path = []; @@ -491,7 +491,6 @@ const composedPath = el => { if (el.tagName === "HTML") { path.push(document); path.push(window); - return path; }