A music player that connects to your cloud/distributed storage.

fix: idb whenConnected

+3 -8
+3 -8
src/components/output/polymorphic/indexed-db/element.js
··· 26 26 27 27 /** @type {OutputManager<SupportedDataTypes>} */ 28 28 const manager = outputManager({ 29 + init: this.whenConnected.bind(this), 29 30 tracks: { 30 31 empty: () => undefined, 31 - get: () => { 32 - if (!this.$connected.value) return undefined 33 - return p.get({ name: this.#cat("tracks") }) 34 - }, 35 - put: (data) => { 36 - if (!this.$connected.value) return 37 - return p.put({ name: this.#cat("tracks"), data }) 38 - }, 32 + get: () => p.get({ name: this.#cat("tracks") }), 33 + put: (data) => p.put({ name: this.#cat("tracks"), data }), 39 34 }, 40 35 }); 41 36