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

Configure Feed

Select the types of activity you want to include in your feed.

fix: indexeddb output channel name should include namespace

+15 -7
+15 -7
src/components/output/polymorphic/indexed-db/element.js
··· 66 66 connectedCallback() { 67 67 // Broadcast if needed 68 68 if (this.hasAttribute("group")) { 69 - const actions = this.broadcast(this.nameWithGroup, { 70 - put: { strategy: "replicate", fn: this.#putIncoming }, 71 - }); 69 + const actions = this.broadcast( 70 + `${this.nameWithGroup}${ 71 + this.namespace.length ? "/" + this.namespace.replace(/\/$/, "") : "" 72 + }`, 73 + { 74 + put: { strategy: "replicate", fn: this.#putIncoming }, 75 + }, 76 + ); 72 77 73 78 if (actions) { 74 79 this.#put = this.#putOutgoing(actions.put); ··· 117 122 118 123 // 🛠️ 119 124 125 + get namespace() { 126 + return this.hasAttribute("namespace") 127 + ? this.getAttribute("namespace") + "/" 128 + : ""; 129 + } 130 + 120 131 /** @param {string} name */ 121 132 #cat(name) { 122 - const namespace = this.hasAttribute("namespace") 123 - ? this.getAttribute("namespace") + "/" 124 - : ""; 125 - return `${namespace}${name}`; 133 + return `${this.namespace}${name}`; 126 134 } 127 135 } 128 136