all const on the top!
This commit is contained in:
parent
459317fedf
commit
7e126c05f3
@ -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 = "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user