Files
Trilium/src/services/sync_setup.js
2018-07-22 22:21:16 +02:00

11 lines
434 B
JavaScript

"use strict";
const config = require('./config');
const optionService = require('./options');
module.exports = {
getSyncServer: async () => await optionService.getOption('syncServerHost'),
isSyncSetup: async () => !!await optionService.getOption('syncServerHost'),
getSyncTimeout: async () => await optionService.getOption('syncServerTimeout'),
getSyncProxy: async () => await optionService.getOption('syncProxy')
};