You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-12 22:57:38 +02:00
All: Added Katex support
This commit is contained in:
@ -45,12 +45,20 @@ function shimInit() {
|
||||
|
||||
let headers = options.headers ? options.headers : {};
|
||||
let method = options.method ? options.method : 'GET';
|
||||
const overwrite = 'overwrite' in options ? options.overwrite : true;
|
||||
|
||||
let dirs = RNFetchBlob.fs.dirs;
|
||||
let localFilePath = options.path;
|
||||
if (localFilePath.indexOf('/') !== 0) localFilePath = dirs.DocumentDir + '/' + localFilePath;
|
||||
|
||||
if (!overwrite) {
|
||||
if (await shim.fsDriver().exists(localFilePath)) {
|
||||
return { ok: true };
|
||||
}
|
||||
}
|
||||
|
||||
delete options.path;
|
||||
delete options.overwrite;
|
||||
|
||||
const doFetchBlob = () => {
|
||||
return RNFetchBlob.config({
|
||||
|
Reference in New Issue
Block a user