Finally getting the initial loading better
This commit is contained in:
@@ -16,7 +16,7 @@ if (!$ae_api.account_id || !$ae_api.headers['x-account-id']) {
|
||||
$ae_api.account_id = $ae_loc.account_id;
|
||||
$ae_api.headers['x-account-id'] = $ae_loc.account_id;
|
||||
} else {
|
||||
goto('/');
|
||||
console.log(`Account ID not set!!!`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,4 +36,4 @@ export async function load({ parent }) {
|
||||
|
||||
}
|
||||
|
||||
export const prerender = true;
|
||||
// export const prerender = true;
|
||||
@@ -140,20 +140,6 @@ function handle_check_event_exhibit_staff_passcode(entered_passcode: string) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// function open_exhibit_tracking(event_exhibit_id_random) {
|
||||
// console.log(`open_exhibit_tracking() event_exhibit_id_random=${event_exhibit_id_random}`);
|
||||
|
||||
// if (!event_exhibit_id_random) {
|
||||
// console.log('No event exhibit ID provided.');
|
||||
// return null;
|
||||
// }
|
||||
|
||||
// if ($events_loc.leads.auto_view) {
|
||||
// goto($events_sess.leads.open_href, {invalidateAll: true});
|
||||
// } else {
|
||||
// }
|
||||
// }
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user