You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Refactored handling of multiple sync targets
This commit is contained in:
@ -11,15 +11,7 @@ shim.isReactNative = () => {
|
||||
|
||||
shim.fetch = typeof fetch !== 'undefined' ? fetch : null;
|
||||
shim.FormData = typeof FormData !== 'undefined' ? FormData : null;
|
||||
|
||||
if (!shim.fetch) {
|
||||
let moduleName = 'node-fetch';
|
||||
shim.fetch = require(moduleName);
|
||||
}
|
||||
|
||||
if (!shim.FormData) {
|
||||
let moduleName = 'form-data';
|
||||
shim.FormData = require(moduleName);
|
||||
}
|
||||
shim.fs = null;
|
||||
shim.FileApiDriverLocal = null;
|
||||
|
||||
export { shim };
|
Reference in New Issue
Block a user