image sync fixes and 4.0.0 electron

This commit is contained in:
azivner
2018-12-22 09:54:09 +01:00
parent cbec85f295
commit e9a77f3f16
5 changed files with 25 additions and 16 deletions

View File

@@ -16,7 +16,13 @@ async function get(name) {
module.exports = {
getSyncServerHost: async () => await get('syncServerHost'),
isSyncSetup: async () => !!await get('syncServerHost'),
isSyncSetup: async () => {
const syncServerHost = await get('syncServerHost');
// special value "disabled" is here to support use case where document is configured with sync server
// and we need to override it with config from config.ini
return !!syncServerHost && syncServerHost !== 'disabled';
},
getSyncTimeout: async () => parseInt(await get('syncServerTimeout')),
getSyncProxy: async () => await get('syncProxy')
};