From eec61b85016f4b8acc989b2aecf5c38f838cb850 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Sun, 17 May 2020 12:33:12 +0200 Subject: [PATCH] www: properly set image hostname --- www/assets/javascripts/application.js | 1 + www/index.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/www/assets/javascripts/application.js b/www/assets/javascripts/application.js index 7a87c12..1a61324 100644 --- a/www/assets/javascripts/application.js +++ b/www/assets/javascripts/application.js @@ -240,6 +240,7 @@ function init() { }); $("input[type='number']").spinner(); + $("#usb_cam").attr("src", "http://"+robothostname+":8080/stream?topic=/camera/color/image_raw"); } Vue.component('input-value', { diff --git a/www/index.html b/www/index.html index db7e48d..15e2aed 100644 --- a/www/index.html +++ b/www/index.html @@ -22,7 +22,7 @@ Wild Thumper control @@ -126,7 +126,7 @@
- +
-- 2.39.2