General clean up. Less debug. Things work better?
This commit is contained in:
@@ -132,7 +132,7 @@ export async function load({ fetch, params, parent, route, url }) { // params, r
|
||||
// ae_loc.site_domain = data.url.origin;
|
||||
// console.log(`ae_loc = `, ae_loc);
|
||||
|
||||
account_id = await core_func.handle_load_ae_obj_id__site_domain({api_cfg: ae_api_init, fqdn: url.host, try_cache: false})
|
||||
account_id = await core_func.handle_load_ae_obj_id__site_domain({api_cfg: ae_api_init, fqdn: url.host, try_cache: false, log_lvl: 1})
|
||||
|
||||
.then(function (site_domain_results) {
|
||||
if (site_domain_results) {
|
||||
@@ -162,18 +162,11 @@ export async function load({ fetch, params, parent, route, url }) { // params, r
|
||||
|
||||
return null;
|
||||
});
|
||||
// .then(async function (results) {
|
||||
// return true;
|
||||
// })
|
||||
// .finally(function () {
|
||||
// return true;
|
||||
// });
|
||||
|
||||
if (!account_id) {
|
||||
console.log(`root layout.ts: The account_id was not found in API response!!!`);
|
||||
return false;
|
||||
}
|
||||
|
||||
// console.log(ae_loc_init);
|
||||
|
||||
// if (browser) {
|
||||
@@ -189,12 +182,6 @@ export async function load({ fetch, params, parent, route, url }) { // params, r
|
||||
.then(function (ds_results) {
|
||||
if (ds_results) {
|
||||
console.log(`ae_ ds_results = `, ds_results);
|
||||
// if (browser) {
|
||||
// console.log(`ae_ds__ key: ${ds_code}, value:`, ds_results);
|
||||
// localStorage.setItem(`ae_ds__${ds_code}`, JSON.stringify(ds_results));
|
||||
// } else {
|
||||
// console.log('No browser!!!');
|
||||
// }
|
||||
return ds_results;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user