| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | (function () { |
||
| 33 | ShareService.downloadSharedFile(credential, file).then(function (result) { |
||
| 34 | var key = null; |
||
|
|
|||
| 35 | if (!result.hasOwnProperty('file_data')) { |
||
| 36 | NotificationService.showNotification('Error downloading file, you probably don\'t have enough permissions', 5000); |
||
| 37 | return; |
||
| 38 | } |
||
| 39 | var file_data = EncryptService.decryptString(result.file_data, _key); |
||
| 40 | download(file_data, escapeHTML(file.filename), file.mimetype); |
||
| 41 | }); |
||
| 42 | }; |
||
| 45 |