From 2b77cd47ca07d0e078b3dd27616ab255b7657db1 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Thu, 2 Apr 2020 07:11:49 +0200 Subject: [PATCH] www: added hostname variable --- www/assets/javascripts/application.js | 2 +- www/index.html | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/www/assets/javascripts/application.js b/www/assets/javascripts/application.js index a7b4785..df4c9eb 100644 --- a/www/assets/javascripts/application.js +++ b/www/assets/javascripts/application.js @@ -4,7 +4,7 @@ function init() { var isDragging = false; function connect() { - ros.connect('ws://wildthumper:9090'); + ros.connect('ws://'+robothostname+':9090'); } ros.on('connection', function() { diff --git a/www/index.html b/www/index.html index 7a86765..bc209ac 100644 --- a/www/index.html +++ b/www/index.html @@ -21,6 +21,9 @@ + Wild Thumper control @@ -115,7 +118,7 @@
- +
-- 2.39.5