···88import * as db from "../indexed-db.js"
991010import { SECRET_KEY_LOCATION } from "./common.js"
1111-import { decryptIfNeeded, fromCache, removeCache } from "./common.js"
1111+import { decryptIfNeeded, encryptWithSecretKey, fromCache, removeCache } from "./common.js"
1212import { reportError, sendJsonData, storageCallback, toCache } from "./common.js"
13131414
+3-3
src/Javascript/audio-engine.js
···294294 break
295295 case event.target.error.MEDIA_ERR_NETWORK:
296296 console.error("A network error caused the audio download to fail.")
297297- showNetworkErrorNotificationIfNeeded()
297297+ showNetworkErrorNotificationIfNeeded.call(this)
298298 break
299299 case event.target.error.MEDIA_ERR_DECODE:
300300 console.error("The audio playback was aborted due to a corruption problem or because the video used features your browser did not support.")
301301 break
302302 case event.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:
303303 console.error("The audio not be loaded, either because the server or network failed or because the format is not supported.")
304304- showNetworkErrorNotificationIfNeeded()
304304+ showNetworkErrorNotificationIfNeeded.call(this)
305305 audioStalledEvent.call(this, event)
306306 break
307307 default:
···314314 if (didShowNetworkError) return
315315 didShowNetworkError = true
316316317317- app.ports.showErrorNotification.send(
317317+ this.app.ports.showErrorNotification.send(
318318 navigator.onLine
319319 ? "I can't play this track because of a network error. I'll try to reconnect."
320320 : "I can't play this track because we're offline. I'll try to reconnect."