url not hardcoded

This commit is contained in:
Sam Hadow committed 2024-01-29 23:35:20 +01:00
1 parent c19fac2dc5
commit e7a6dc5cd8
3 files changed
+15 -5

No files matched your search

+7 -1
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>