css is now completely in the script (no more external css!)

This commit is contained in:
Matteo Manzinello
2019-05-27 10:38:42 +02:00
parent e33b97fd0c
commit 54df670bcb
4 changed files with 34 additions and 27 deletions

View File

@@ -4,7 +4,8 @@ const MAILTO = "mailto:";
// mailgo style
const mailgoCSS = document.createElement("style");
mailgoCSS.type = "text/css";
mailgoCSS.appendChild("MAILGO_STYLE");
mailgoCSSContent = document.createTextNode(`MAILGO_STYLE`);
mailgoCSS.appendChild(mailgoCSSContent);
document.head.appendChild(mailgoCSS);
/**