mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 21:19:35 +00:00
www: use location.hostname for hostname
This commit is contained in:
@@ -3,7 +3,7 @@ var titleEl = document.querySelector('title');
|
||||
var modeEl = document.querySelector('.mode');
|
||||
var batteryEl = document.querySelector('.battery');
|
||||
|
||||
var url = 'ws://' + location.host + ':9090';
|
||||
var url = 'ws://' + location.hostname + ':9090';
|
||||
var ros = new ROSLIB.Ros({ url: url });
|
||||
|
||||
function speak(txt) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
var ros = new ROSLIB.Ros({
|
||||
url : 'ws://' + location.host + ':9090'
|
||||
url : 'ws://' + location.hostname + ':9090'
|
||||
});
|
||||
|
||||
var titleEl = document.querySelector('title');
|
||||
|
||||
Reference in New Issue
Block a user