1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Fixed crash when calling fetch() with invalid URL in RN app

This commit is contained in:
Laurent Cozic
2018-01-30 19:01:07 +00:00
parent 5cb5ccc781
commit 2805ae2acf
4 changed files with 15 additions and 14 deletions

View File

@ -104,7 +104,6 @@ shim.fetchWithRetry = async function(fetchFn, options = null) {
}
}
shim.nativeFetch_ = typeof fetch !== 'undefined' ? fetch : null;
shim.fetch = () => { throw new Error('Not implemented'); }
shim.FormData = typeof FormData !== 'undefined' ? FormData : null;
shim.fsDriver = () => { throw new Error('Not implemented') }