1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Mobile: Fixes #10848: Fix WebDAV sync on mobile (#10849)

This commit is contained in:
Henry Heino 2024-08-09 12:49:01 -07:00 committed by GitHub
parent 4caca4934e
commit f58d29a6a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,8 @@ const shimInitShared = () => {
return Buffer.byteLength(string, 'utf-8');
};
shim.httpAgent = () => null;
shim.fetch = async function(url, options = null) {
// The native fetch() throws an uncatchable error that crashes the
// app if calling it with an invalid URL such as '//.resource' or