Update index.html (#17)

Remove hard-coded URL (hard-coded IP address).
Fixes an issue where the web server crashes shortly after launch.
This commit is contained in:
Richard Akerman 2023-09-30 21:31:16 -04:00 committed by GitHub
parent c6ff5cb22b
commit 75b5109cf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.3.2/chart.min.js" integrity="sha512-VCHVc5miKoln972iJPvkQrUYYq7XpxXzvqNfiul1H4aZDwGBGC0lq373KNleaB2LpnC2a/iNfE5zoRYmB4TRDQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
$.getJSON('http://10.0.0.172:8000/api/', function(data) {
$.getJSON('/api/', function(data) {
var ctx = document.getElementById('historicalChart').getContext('2d');
var historicalChart = new Chart(ctx, {
type: 'line',
@ -56,4 +56,4 @@
</body>
</html>
</html>