Saving more code clean up and removal
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
import Launcher_cfg from '../launcher_cfg.svelte';
|
||||
import Launcher_menu from '../launcher_menu.svelte';
|
||||
import Launcher_session_view from '../launcher_session_view.svelte';
|
||||
import Element_websocket_v3 from '$lib/elements/element_websocket_v3.svelte';
|
||||
import Element_websocket from '$lib/elements/element_websocket.svelte';
|
||||
|
||||
// *** Set initial variables
|
||||
// NOTE: Derived from data.account_id (prop) instead of $slct.account_id (store)
|
||||
@@ -95,7 +95,7 @@
|
||||
// Generate a stable per-device client ID on first load and persist it.
|
||||
// events_loc is backed by svelte-persisted-store (localStorage) so this
|
||||
// survives page reloads. Without this, client_id falls back to Date.now()
|
||||
// inside element_websocket_v3 — a new ID on every reload, which breaks
|
||||
// inside element_websocket — a new ID on every reload, which breaks
|
||||
// direct-target WS messages and doesn't match V3 Vision ID expectations.
|
||||
if (!$events_loc.launcher.controller_client_id) {
|
||||
$events_loc.launcher.controller_client_id = crypto.randomUUID();
|
||||
@@ -1168,7 +1168,7 @@
|
||||
</Modal>
|
||||
|
||||
{#if $events_loc.launcher.controller_group_code && $events_loc.launcher.ws_connect}
|
||||
<Element_websocket_v3
|
||||
<Element_websocket
|
||||
{log_lvl}
|
||||
bind:ws_connect={$events_loc.launcher.ws_connect}
|
||||
bind:ws_connect_status={$events_sess.launcher.ws_connect_status}
|
||||
|
||||
Reference in New Issue
Block a user