Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius David Wieschollek <passwords.public@mdns.eu>2020-12-28 18:39:42 +0300
committerMarius David Wieschollek <passwords.public@mdns.eu>2020-12-28 18:39:42 +0300
commit71c19da108a1efc82bcb52fd5c1aa7aa55fe6b7f (patch)
tree10fcfd477a551bdf306e7d201f77af60466059f3
parent9fe55b511721d751442832e2d91280ce8d75c711 (diff)
Set correct preview parameters
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
-rw-r--r--src/Model/Password/EnhancedPassword.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Model/Password/EnhancedPassword.js b/src/Model/Password/EnhancedPassword.js
index 6b05fc9..9290910 100644
--- a/src/Model/Password/EnhancedPassword.js
+++ b/src/Model/Password/EnhancedPassword.js
@@ -87,7 +87,7 @@ export default class EnhancedPassword extends Password {
* @returns {Promise<Blob>}
*/
async getPreview(width = 640, height = '360...', view) {
- let path = this.getPreviewUrl(size, true),
+ let path = this.getPreviewUrl(width, height, view, true),
response = await this._api.getRequest().setPath(path).setResponseType('image/jpeg').send();
return response.getData();