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

Configure Feed

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

Return Promise for IPFS user-storage

+1 -1
+1 -1
src/Javascript/Brain/user.ts
··· 139 139 taskPorts.fromIpfs = ({ apiOrigin, fileName }) => { 140 140 const path = IPFS_ROOT + fileName 141 141 142 - fetch(apiOrigin + "/api/v0/files/read?arg=" + encodeURIComponent(path), { method: "POST" }) 142 + return fetch(apiOrigin + "/api/v0/files/read?arg=" + encodeURIComponent(path), { method: "POST" }) 143 143 .then(r => r.ok ? r.text() : r.json()) 144 144 .then(r => r.Code === 0 ? null : r) 145 145 .then(decryptIfNeeded)