www: added hostname variable
[ros_wild_thumper.git] / www / assets / javascripts / application.js
index a7b4785..df4c9eb 100644 (file)
@@ -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() {