Skip to content

Commit

Permalink
Remove hardcoded port in URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Jan 15, 2025
1 parent 4344252 commit b8628fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proxy/web/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ <h2 style="color:gray;font-family:verdana;">iFrame Example</h2>
<script>
// Get Firmware Version
function showversion() {
var pwver = window.location.protocol + "//" + window.location.hostname + ":8675/version";
// Get port from the URL
var port = window.location.port;
var pwver = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port + "/version";
$.getJSON(pwver, function(data) {
var text = `Firmware: ${data.version}`;
$(".version").html(text);
Expand Down

0 comments on commit b8628fe

Please sign in to comment.