mirror of
https://github.com/ruvnet/RuView.git
synced 2026-04-28 05:59:32 +00:00
fix: recognize linux WiFi source as live data in UI
The sensing service's _applyServerSource only matched "esp32", "wifi", and "live" as live sources. The new Linux path emits "linux:<SSID>" (and the Windows path emits "wifi:<SSID>"), both of which fell through to "server-simulated". Match the prefixed variants too. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b3d44a257d
commit
9e2a241dab
1 changed files with 1 additions and 1 deletions
|
|
@ -290,7 +290,7 @@ class SensingService {
|
|||
*/
|
||||
_applyServerSource(rawSource) {
|
||||
this._serverSource = rawSource;
|
||||
if (rawSource === 'esp32' || rawSource === 'wifi' || rawSource === 'live') {
|
||||
if (rawSource === 'esp32' || rawSource === 'wifi' || rawSource === 'live' || rawSource.startsWith('linux:') || rawSource.startsWith('wifi:')) {
|
||||
this._setDataSource('live');
|
||||
} else if (rawSource === 'simulated' || rawSource === 'simulate') {
|
||||
this._setDataSource('server-simulated');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue