1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

All: Added sync config check to config screens

This commit is contained in:
Laurent Cozic
2018-02-06 18:59:36 +00:00
parent a25fcacace
commit fa5f418c22
13 changed files with 230 additions and 46 deletions

View File

@@ -187,7 +187,7 @@ class WebDavApi {
let response = null;
// console.info('WebDAV', method + ' ' + url, headers, options);
// console.info('WebDAV Call', method + ' ' + url, headers, options);
if (options.source == 'file' && (method == 'POST' || method == 'PUT')) {
response = await shim.uploadBlob(url, fetchOptions);
@@ -199,6 +199,8 @@ class WebDavApi {
const responseText = await response.text();
// console.info('WebDAV Response', responseText);
// Gives a shorter response for error messages. Useful for cases where a full HTML page is accidentally loaded instead of
// JSON. That way the error message will still show there's a problem but without filling up the log or screen.
const shortResponseText = () => {