Fix CSP issues for missing files (404)

This commit is contained in:
yflory
2018-06-12 15:15:46 +02:00
parent 9fbf507cda
commit 01a3c13a8c
4 changed files with 6 additions and 3 deletions

View File

@@ -95,7 +95,9 @@ define([
FileCrypto.fetchDecryptedMetadata(src, key, function (e, metadata) {
if (e) {
if (e === 'XHR_ERROR') {
return void UI.errorLoadingScreen(Messages.download_resourceNotAvailable);
return void UI.errorLoadingScreen(Messages.download_resourceNotAvailable, false, function () {
common.gotoURL('/file/');
});
}
return void console.error(e);
}