on init, load cached profiles to fuzzy search

This commit is contained in:
Martti Malmi
2024-01-09 12:38:24 +02:00
parent 45245153ab
commit 6026ed34a8
3 changed files with 8 additions and 1 deletions

View File

@ -39,6 +39,12 @@ if (CONFIG.httpCache) {
};
}
System.ProfileLoader.Cache.hook(() => {
System.ProfileLoader.Cache.takeSnapshot().forEach(a => {
console.log("Profile: %O", a);
});
}, "profiles");
export async function fetchProfile(key: string) {
try {
throwIfOffline();