Skip to content

Commit

Permalink
simpler js bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Mar 19, 2022
1 parent 4f61067 commit 4c0bd29
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,7 @@ <h5 id="title">Starting mapserver...</h5>
<script src="js/lib/leaflet.awesome-markers.js"></script>
<script src="js/lib/moment.min.js"></script>

<!-- bootstrap script -->
<script>
function dev_fallback(){
var s = document.createElement("script");
s.setAttribute("src", "js/main.js");
s.setAttribute("type", "module");
document.body.appendChild(s);
};
</script>
<script src="js/bundle.js" onerror="dev_fallback()"></script>
<!-- main script -->
<script src="js/bundle.js" onerror="import('./js/main.js')"></script>
</body>
</html>

0 comments on commit 4c0bd29

Please sign in to comment.