mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
#98 some sync setup refactorings
This commit is contained in:
10
src/services/sync_options.js
Normal file
10
src/services/sync_options.js
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
const optionService = require('./options');
|
||||
|
||||
module.exports = {
|
||||
getSyncServerHost: async () => await optionService.getOption('syncServerHost'),
|
||||
isSyncSetup: async () => !!await optionService.getOption('syncServerHost'),
|
||||
getSyncTimeout: async () => await optionService.getOption('syncServerTimeout'),
|
||||
getSyncProxy: async () => await optionService.getOption('syncProxy')
|
||||
};
|
||||
Reference in New Issue
Block a user