mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
parent
4caca4934e
commit
f58d29a6a6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user