1
0
forked from MTSR/mapserver

simpler js bootstrap

This commit is contained in:
BuckarooBanzay 2022-03-19 17:15:19 +01:00
parent 4f61067cf2
commit 4c0bd29d9f

View File

@ -26,15 +26,7 @@
<script src="js/lib/leaflet.awesome-markers.js"></script> <script src="js/lib/leaflet.awesome-markers.js"></script>
<script src="js/lib/moment.min.js"></script> <script src="js/lib/moment.min.js"></script>
<!-- bootstrap script --> <!-- main script -->
<script> <script src="js/bundle.js" onerror="import('./js/main.js')"></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>
</body> </body>
</html> </html>