From b98a4f3626f65f804ff1ed0e058d985590b92e79 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle <patrizio@bekerle.com> Date: Thu, 10 Dec 2020 14:24:10 +0100 Subject: [PATCH] Use new webdavUrl of webapppassword (dbp/nextcloud/webapppassword#13) --- packages/file-handling/src/dbp-nextcloud-file-picker.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/file-handling/src/dbp-nextcloud-file-picker.js b/packages/file-handling/src/dbp-nextcloud-file-picker.js index 8f28a8a6..a2822795 100644 --- a/packages/file-handling/src/dbp-nextcloud-file-picker.js +++ b/packages/file-handling/src/dbp-nextcloud-file-picker.js @@ -300,11 +300,9 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { this.loginWindow.close(); } - const apiUrl = this.webDavUrl + "/" + data.loginName; // see https://github.com/perry-mitchell/webdav-client/blob/master/API.md#module_WebDAV.createClient - this.webDavClient = createClient( - apiUrl, + data.webdavUrl ?? this.webDavUrl + "/" + data.loginName, { username: data.loginName, password: data.token -- GitLab