_open()

in src/content/lib/cache.js [10:23]


  _open() {
    if (prefs.get("disable_cache")) return null;
    try {
      const cache = window.caches.open(this._version);
      if (!this._opened) {
        this.update();
        this._opened = true;
      }
      return cache;
    } catch (error) {
      console.debug("Error accessing cache :>> ", error);
      return null;
    }
  }