diff --git a/ui/saul-tee-tracker.html b/ui/saul-tee-tracker.html index 294183a..dcf7661 100644 --- a/ui/saul-tee-tracker.html +++ b/ui/saul-tee-tracker.html @@ -227,7 +227,7 @@ body {
- + Not connected
@@ -732,7 +732,10 @@ map.on('dragstart', () => { // ── Init ────────────────────────────────────────────────────────────────────── (function init() { - const saved = localStorage.getItem('saul_tee_ws_url') || 'ws://100.64.0.2:9090'; + const defaultUrl = location.protocol === 'https:' + ? 'wss://saul-t-mote.evthings.app/rosbridge' + : 'ws://100.64.0.2:9090'; + const saved = localStorage.getItem('saul_tee_ws_url') || defaultUrl; $('ws-input').value = saved; drawCompass(null); connectRos(saved);