Minor change

This commit is contained in:
Scott Idem
2024-10-08 14:10:43 -04:00
parent a6b9115865
commit f9b3b3a0eb

View File

@@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
/** @type {import('./$types').LayoutData} */ /** @type {import('./$types').LayoutData} */
export let data: any; export let data: any;
let log_lvl = 1; let log_lvl = 0;
import { onMount, tick } from 'svelte'; import { onMount, tick } from 'svelte';
import { goto } from '$app/navigation'; import { goto } from '$app/navigation';
@@ -193,23 +193,24 @@ function handle_ws_recv(event) {
// console.log(new_url); // console.log(new_url);
// goto(new_url, {replaceState: false}); // goto(new_url, {replaceState: false});
ae_promises.slct_event_session_id = events_func.load_ae_obj_id__event_session({ // ae_promises.slct_event_session_id = events_func.load_ae_obj_id__event_session({
api_cfg: $ae_api, // api_cfg: $ae_api,
event_session_id: $events_slct.event_session_id, // event_session_id: $events_slct.event_session_id,
inc_file_li: true, // inc_file_li: true,
inc_presentation_li: true, // inc_presentation_li: true,
try_cache: true, // try_cache: true,
log_lvl: log_lvl // log_lvl: log_lvl
}) // })
.then(async (load_results) => { // .then(async (load_results) => {
}); // });
console.log(`Current URL`, data.url);
data.url.searchParams.set('session_id', $events_slct.event_session_id); // let new_url = new URL(data.url);
// new_url.pathname = `/events/${$events_slct.event_id}/launcher/${$events_slct.event_location_id}`;
let new_url = data.url.toString(); // new_url.searchParams.set('session_id', $events_slct.event_session_id);
console.log(new_url); // let new_url = data.url.toString();
goto(new_url, {replaceState: false}); // console.log(`New URL: ${new_url}`);
// goto(new_url, {replaceState: false});
} }
// AE Open (event file ID) // AE Open (event file ID)