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 storageCallback usage

+7 -7
+7 -7
src/Javascript/Brain/user.js
··· 129 129 130 130 session 131 131 .putFile(event.data.file, json) 132 - .then( storageCallback(event) ) 132 + .then( storageCallback(app, event) ) 133 133 .catch( reportError(app, event) ) 134 134 } 135 135 ··· 184 184 body: data 185 185 }) 186 186 }) 187 - .then( storageCallback(event) ) 187 + .then( storageCallback(app, event) ) 188 188 .catch(reporter) 189 189 190 190 toCache(event.tag + "_" + event.data.file, event.data.data) 191 - .then( !navigator.onLine ? storageCallback(event) : identity ) 191 + .then( !navigator.onLine ? storageCallback(app, event) : identity ) 192 192 .catch(reporter) 193 193 } 194 194 ··· 235 235 { method: "POST", body: formData } 236 236 ) 237 237 }) 238 - .then( storageCallback(event) ) 238 + .then( storageCallback(app, event) ) 239 239 .catch( reportError(app, event) ) 240 240 } 241 241 ··· 328 328 !isOffline && remoteStorage(event) 329 329 .then(doEncryption) 330 330 .then(data => rsClient.storeFile("application/json", event.data.file, data)) 331 - .then( storageCallback(event) ) 331 + .then( storageCallback(app, event) ) 332 332 .catch( reportError(app, event) ) 333 333 334 334 toCache(event.tag + "_" + event.data.file, event.data.data) 335 - .then( isOffline ? storageCallback(event) : identity ) 335 + .then( isOffline ? storageCallback(app, event) : identity ) 336 336 .catch( reportError(app, event) ) 337 337 } 338 338 ··· 382 382 .then(_ => Textile.useMill(apiOrigin, event.data.file, json)) 383 383 .then(m => Textile.addFileToThread(apiOrigin, m)) 384 384 385 - .then( storageCallback(event) ) 385 + .then( storageCallback(app, event) ) 386 386 .catch( reportError(app, event) ) 387 387 } 388 388