From 7e126c05f335a44a9e106737045fb93113b169ff Mon Sep 17 00:00:00 2001 From: Matteo Manzinello Date: Fri, 25 Oct 2019 21:03:03 +0200 Subject: [PATCH] all const on the top! --- src/mailgo.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mailgo.js b/src/mailgo.js index ddce922..fc944d9 100644 --- a/src/mailgo.js +++ b/src/mailgo.js @@ -1,14 +1,6 @@ // @flow const V = "MAILGO_VERSION"; -// mailgo style (gulp) -const mailgoCSS = document.createElement("style"); -mailgoCSS.id = "mailgo-style"; -mailgoCSS.type = "text/css"; -const mailgoCSSContent = document.createTextNode(`MAILGO_STYLE`); -mailgoCSS.appendChild(mailgoCSSContent); -document.head.appendChild(mailgoCSS); - // links const MAILTO = "mailto:"; const TEL = "tel:"; @@ -20,6 +12,14 @@ const TEL_TYPE = "tel"; const DEFAULT_BTN_HREF = "javascript:void(0);"; +// mailgo style (gulp) +let mailgoCSS = document.createElement("style"); +mailgoCSS.id = "mailgo-style"; +mailgoCSS.type = "text/css"; +let mailgoCSSContent = document.createTextNode(`MAILGO_STYLE`); +mailgoCSS.appendChild(mailgoCSSContent); +document.head.appendChild(mailgoCSS); + // mailgo variables let url = "", mail = "",