You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-12 22:57:38 +02:00
Refactored handling of multiple sync targets
This commit is contained in:
@ -1,10 +1,16 @@
|
||||
import fs from 'fs-extra';
|
||||
import { shim } from 'lib/shim.js';
|
||||
import { GeolocationNode } from 'lib/geolocation-node.js';
|
||||
import { FileApiDriverLocal } from 'lib/file-api-driver-local.js';
|
||||
|
||||
|
||||
function shimInit() {
|
||||
shim.fs = fs;
|
||||
shim.FileApiDriverLocal = FileApiDriverLocal;
|
||||
shim.Geolocation = GeolocationNode;
|
||||
|
||||
shim.fetch = require('node-fetch');
|
||||
shim.FormData = require('form-data');
|
||||
|
||||
shim.fetchBlob = async function(url, options) {
|
||||
if (!options || !options.path) throw new Error('fetchBlob: target file path is missing');
|
||||
if (!options.method) options.method = 'GET';
|
||||
|
Reference in New Issue
Block a user