url not hardcoded

This commit is contained in:
2024-01-29 23:35:20 +01:00
parent c19fac2dc5
commit e7a6dc5cd8
3 changed files with 15 additions and 5 deletions

View File

@ -7,4 +7,10 @@
<!-- Create a div where the graphs will take place -->
<div id="graphs"></div>
<script src="http://127.0.0.1/app.js"></script>
<!-- <script src="http://127.0.0.1/app.js"></script> -->
<script>
let currenturl = (window.location);
var s = document.createElement( 'script' );
s.setAttribute( 'src', `${currenturl}/app.js` );
document.body.appendChild( s );
</script>