1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-04 21:53:18 +02:00

Allow exporting notes and notebooks

This commit is contained in:
Laurent Cozic
2017-08-20 16:29:18 +02:00
parent 1213819467
commit 671e8a3fc8
17 changed files with 273 additions and 23 deletions

View File

@ -10,6 +10,7 @@ import { shim } from 'lib/shim.js';
import { time } from 'lib/time-utils.js';
import { FileApiDriverMemory } from 'lib/file-api-driver-memory.js';
import { PoorManIntervals } from 'lib/poor-man-intervals.js';
import { _ } from 'lib/locale.js';
const reg = {};
@ -202,12 +203,16 @@ reg.setupRecurrentSync = () => {
reg.recurrentSyncId_ = null;
}
reg.logger().debug('Setting up recurrent sync with interval ' + Setting.value('sync.interval'));
if (!Setting.value('sync.interval')) {
reg.logger().debug('Recurrent sync is disabled');
} else {
reg.logger().debug('Setting up recurrent sync with interval ' + Setting.value('sync.interval'));
reg.recurrentSyncId_ = PoorManIntervals.setInterval(() => {
reg.logger().info('Running background sync on timer...');
reg.scheduleSync(0);
}, 1000 * Setting.value('sync.interval'));
reg.recurrentSyncId_ = PoorManIntervals.setInterval(() => {
reg.logger().info('Running background sync on timer...');
reg.scheduleSync(0);
}, 1000 * Setting.value('sync.interval'));
}
}
reg.setDb = (v) => {