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 javascript references and imports

+4 -4
+1 -1
src/Javascript/Brain/user.js
··· 8 8 import * as db from "../indexed-db.js" 9 9 10 10 import { SECRET_KEY_LOCATION } from "./common.js" 11 - import { decryptIfNeeded, fromCache, removeCache } from "./common.js" 11 + import { decryptIfNeeded, encryptWithSecretKey, fromCache, removeCache } from "./common.js" 12 12 import { reportError, sendJsonData, storageCallback, toCache } from "./common.js" 13 13 14 14
+3 -3
src/Javascript/audio-engine.js
··· 294 294 break 295 295 case event.target.error.MEDIA_ERR_NETWORK: 296 296 console.error("A network error caused the audio download to fail.") 297 - showNetworkErrorNotificationIfNeeded() 297 + showNetworkErrorNotificationIfNeeded.call(this) 298 298 break 299 299 case event.target.error.MEDIA_ERR_DECODE: 300 300 console.error("The audio playback was aborted due to a corruption problem or because the video used features your browser did not support.") 301 301 break 302 302 case event.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED: 303 303 console.error("The audio not be loaded, either because the server or network failed or because the format is not supported.") 304 - showNetworkErrorNotificationIfNeeded() 304 + showNetworkErrorNotificationIfNeeded.call(this) 305 305 audioStalledEvent.call(this, event) 306 306 break 307 307 default: ··· 314 314 if (didShowNetworkError) return 315 315 didShowNetworkError = true 316 316 317 - app.ports.showErrorNotification.send( 317 + this.app.ports.showErrorNotification.send( 318 318 navigator.onLine 319 319 ? "I can't play this track because of a network error. I'll try to reconnect." 320 320 : "I can't play this track because we're offline. I'll try to reconnect."