diff --git a/static/index.html b/static/index.html index 1c467ce..f1a99e0 100644 --- a/static/index.html +++ b/static/index.html @@ -26,10 +26,7 @@ - - - - - + + diff --git a/static/js/bootstrap.js b/static/js/bootstrap.js new file mode 100644 index 0000000..4833fc6 --- /dev/null +++ b/static/js/bootstrap.js @@ -0,0 +1,16 @@ +(function(){ + var s = document.createElement("script"); + + if (location.host === "127.0.0.1:8080") { + //dev + s.setAttribute("src", "js/main.js"); + s.setAttribute("type", "module"); + + } else { + //prod + s.setAttribute("src", "js/bundle.js"); + + } + + document.body.appendChild(s); +})();