trilium/src/services/sync_options.js

10 lines
402 B
JavaScript
Raw Normal View History

"use strict";
const optionService = require('./options');
module.exports = {
2018-07-25 15:46:57 +08:00
getSyncServerHost: async () => await optionService.getOption('syncServerHost'),
isSyncSetup: async () => !!await optionService.getOption('syncServerHost'),
getSyncTimeout: async () => await optionService.getOption('syncServerTimeout'),
getSyncProxy: async () => await optionService.getOption('syncProxy')
};