More work on the initial loading of things... Looks cleaner.
This commit is contained in:
@@ -56,7 +56,7 @@ let ae_loc_init: key_val = {
|
||||
// properties: params, route, url
|
||||
// functions: fetch, setHeaders, parent, depends, untrack
|
||||
export async function load({ fetch, params, parent, route, url }) { // params, route, url
|
||||
let log_lvl = 2;
|
||||
let log_lvl = 0;
|
||||
// console.log(`Svelte root +layout.ts params:`, params);
|
||||
// console.log(`Svelte root +layout.ts route:`, route);
|
||||
// console.log(`Svelte root +layout.ts url:`, url);
|
||||
@@ -187,7 +187,7 @@ export async function load({ fetch, params, parent, route, url }) { // params, r
|
||||
ae_loc_init['allow_access'] = false;
|
||||
}
|
||||
} else {
|
||||
if (log_lvl) {
|
||||
if (log_lvl > 1) {
|
||||
console.log(`root +layout.ts: No access key found in URL.`);
|
||||
}
|
||||
ae_loc_init['key_checked'] = true;
|
||||
@@ -196,7 +196,7 @@ export async function load({ fetch, params, parent, route, url }) { // params, r
|
||||
}
|
||||
}
|
||||
|
||||
if (log_lvl) {
|
||||
if (log_lvl > 1) {
|
||||
console.log(`root +layout.ts: Returning account_id = `, site_domain_results.account_id_random);
|
||||
console.log(`root +layout.ts: ae_loc_init = `, ae_loc_init);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user