ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...
    • Load the excluded-products map from IndexedDB. Returns an empty object if the store is empty or the read fails, so callers can treat the result as always-valid.

      Returns Promise<ExcludedProductsMap>

      The persisted exclusions map (never null/undefined).

      const excluded = await loadExcludedProducts();
      if (excluded[key]) {
      // product is ignored
      }
      export async function loadExcludedProducts(): Promise<ExcludedProductsMap> {
      return getExcludedProducts();
      }