htmlpreview / htmlpreview.github.com

HTML Preview for GitHub Repositories

Home Page:htmlpreview.github.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview a html with javascript type set on module.

nodi-andy opened this issue · comments

I have following line in my html:
<script type = "module" src = "./src/main.js"></script>

the lines:
var loadJS = function (data) { if (data) { var script = document.createElement('script'); script.innerHTML = data; document.body.appendChild(script); } };

import my main.js without the type set on module. Why the type of script is ignored?