GeoLeaf Core API - v3.19.0
    Preparing search index...
    • Re-flags every local_images record inside the version-change transaction.

      Never throws and never aborts: a rejected upgrade leaves the whole database unopenable, which is far worse than images that stay out of the index until their next write — a failed read or rewrite is logged, its error event cancelled, and the upgrade goes on.

      Parameters

      • tx: IDBTransaction

        The upgrade's version-change transaction.

      Returns void

      const request = indexedDB.open("geoleaf-db", 3);
      request.onupgradeneeded = (e) => {
      if (e.oldVersion > 0 && e.oldVersion < 3 && request.transaction) {
      reflagLocalImages(request.transaction);
      }
      };